I'm passing parameters to a DataPage form via URL from an external source. Some of the parameters are empty. These show NULL in the text fields. I would like to have these fields just empty. How can I do that?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
acer71
I'm passing parameters to a DataPage form via URL from an external source. Some of the parameters are empty. These show NULL in the text fields. I would like to have these fields just empty. How can I do that?
To Datapage:
http://b3.caspio.com/dp.asp?AppKey=a388 ... .fullname@
I have this script but not sure if this is the way to go, or how to implement it ($_Get)???:
function getQuerystring(key, default_)
{
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regex = new RegExp("[\\?&]"+key+"=([^]*)");
var qs = regex.exec(window.location.href);
if(qs == null)
return default_;
else
return qs[1];
}
Thanks!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.