Home › Forum › Laying out a Form › IP address from browser
Tagged: IP address
This topic contains 15 replies, has 0 voices, and was last updated by Anonymous 11 years, 1 month ago.
- AuthorPosts
- January 19, 2010 at 11:29 am #394
AnonymousHi,
Has anyone figured this out?
January 19, 2010 at 2:50 pm #5007sorry, figured what out ?
January 19, 2010 at 2:56 pm #5008
AnonymousHow to get your IP address from the browser into a field?
January 19, 2010 at 3:16 pm #5009there isn’t a function specifically in perfectforms, but there is now the ability for you to call javascript in a form. That will be able to do this for you
see here
/Documentation/manual/html/fg_calling_javascript_from_a_form.htm
January 19, 2010 at 4:22 pm #5010
AnonymousIf we’re using a hosted solution is this available? As in can I use the utils.js file?
January 19, 2010 at 4:46 pm #5011Doesn’t matter if it is ‘hosted’ as long as you have access to your own webserver. You do NOT use the util.js. You embed your form to your own website page and on that page add in your java script
March 9, 2010 at 10:18 am #5131
AnonymousId the form code from the Call JavaScript Example available?
March 9, 2010 at 10:20 am #5132click the ‘html example’ button on the example form in the user guide and you will see the code used
March 9, 2010 at 10:24 am #5133
AnonymousSorry, I mean the form design.
March 9, 2010 at 10:30 am #5134sorry its not, but all there is to it is under the butttons is the Call Javascript action realating to the name of the javascript function defined in the code that would be embedded on your webpage.
see here for the other parameters available /Documentation/manual/html/fg_call_javascript_properties.htm
March 9, 2010 at 10:48 am #5135
AnonymousYeah,I’ve read this. I would like to have seen the form design so I can see the behavior and associated fields in use.
March 9, 2010 at 11:48 am #5136
AnonymousI only ask as you show a mechanic how to strip an engine down, you don’t just give him a haynes manual and go there you are you’re a mechanic!
March 9, 2010 at 12:11 pm #5137Sorry, but the form is not available to download at the current time.
what is it though that you are struggling with? based on your initial ‘how to return IP address, look at the second ‘example’ where the javascript function is:
function myFunction()
//This function will return the string “Hello World!” back to the form
{
return (“Hello world!”);
and then in your CallJavascript you enter in the name of the function (myFunction) and set the return target to the field you want “Hello world!” returned to
March 9, 2010 at 3:28 pm #5142
Anonymousis it possible to use VBscript instead of javascript?
March 9, 2010 at 3:31 pm #5143No. Call Javascript will just support javascript
- AuthorPosts
You must be logged in to reply to this topic.