Welcome, Guest. Please Login.
IRobotSoft Robot
09/30/23 at 08:00:11
News: IRobotSoft is the Best Visual Web Computing Platform!
Home Help Search Login
Google
 


Pages: 1
Send Topic Print
How to change value of hidden input tag (Read 4321 times)
syntax007
IRobotSoft Newbies
*


I Love IRobotSoft

Posts: 10
How to change value of hidden input tag
08/14/15 at 02:28:49
 
i have an input tag in a form which is hidden. I tried to change its value from the submit form and the form submitted but the value of the hidden field didnt change.
 
i even tried following events as Script before each tuple on submit form:
 
javascript('jQuery('#cts').val('000001')')
javascript('alert(jQuery('#cts').val())')
 
even double quote version:
 
javascript('jQuery("#cts").val("000001")')
javascript('alert(jQuery("#cts").val())')
 
 
None of these are working....
 
 
 
----------------------------------
 
Also i noticed that everytime i run robots, my stats keep going to vizury.com that slows down my robots drastically. Is vizury.com navigation triggered by irobotsoft? If yes how to stop it?  
 
If no, where could it be coming from?
Back to top
 
 
  IP Logged
IRobotSoft Administrator
IRobotSoft Administrator
*****


IRobotSoft, the Best
Internet Robot
System

Posts: 1609
Gender: male
Re: How to change value of hidden input tag
Reply #1 - 08/14/15 at 08:09:43
 
You can use SetInput, or SetAttribute function to set the value.  For example, navigate to google page, then use Menu -> Design -> Test Scripting,  and run this:  
 
Code:
SetInput('site', 'test'); 
JavaScript('alert(document.tsf.site.value )') 


 
You can see the hidden site value has been changed.  
 
---  
Also, IRobot will never trigger to go any other site except the site you are going.  The vizury.com probably is trigger by the site you are visiting or you may have affected by some adware.
Back to top
 
 

The Administrator.
WWW   IP Logged
syntax007
IRobotSoft Newbies
*


I Love IRobotSoft

Posts: 10
Re: How to change value of hidden input tag
Reply #2 - 08/26/15 at 05:51:14
 
SetInput('cts','000001'); didnt work !!
 
 
Also i am trying to reload the tuple if there is a condition met... i tried if condition c=0  value: Refresh(); ReloadPage(this_url)  and also return as  reload this tuple.
 
this_url=GetUrl();
 
none of these are working.
Back to top
 
 
  IP Logged
IRobotSoft Administrator
IRobotSoft Administrator
*****


IRobotSoft, the Best
Internet Robot
System

Posts: 1609
Gender: male
Re: How to change value of hidden input tag
Reply #3 - 08/26/15 at 06:35:41
 
Can you test if SetInput works with google page first?  What is the website and page you are scraping?  You can show the URL or maybe send in some sample source code.
 
In the value, you can only call one function such as Refresh() or
ReloadPage('URL')
notice the 'URL' is a constant instead of the actual URL.  You can call multiple functions only when you select the Script value type.  
 
If these do not work, the website you are scraping may have some mechanism that prevent scraping.  Send your website to our support email so we can help you figure it out.  
 
 
Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print