Jump to content

change value within ie


fbar
 Share

Recommended Posts

:alien:

here is the html code of the web page

<input onkeypress="EnterKeyLeaves(this.id,event);" onblur="LeaveTextBox(this.id, 'tblARecords_0_hlPointsto', 'tblARecords_0', 'arecord', 'data', 'tblARecords_0_pointstotd', 'Points to');" onfocus="CheckForSameRow('tblARecords_0');" onclick="ARecordNoEdit=true;" onchange="ARecordChange('tblARecords0hdnRecModified', 'tblARecords_0', 0, '0');" style="width: 400px; display: none;" id="tblARecords_0_txtPointsto" value="2.125.69.0" name="tblARecords_0_txtPointsto" type="text">

 

im  trying to change the value="2.125.69.0"

id = "tblARecords_0_txtPointsto"

how would i change the value ive tryed to submit it has a form but with no joy

please any help would be helpful

its a table input

thanks rob

:alien:

     If $oForm.action <> "0" And Not StringInStr($oForm.action, '.php') Then  ;submit
       _IEFormSubmit($oForm, 0)
       _IELoadWait($oIE)
         $gotourl1 = GUICtrlRead ( $URL1 )
        _IENavigate($oIE,$gotourl1)
Local $dnsinputform = _IEFormGetObjByName($oIE, "form1")
Local $dnsinputbox = _IEFormElementGetObjByName($dnsinputform, "tblARecords_0_hlPointsto")
_IEFormElementSetValue($dnsinputbox, $ip ,1)

MsgBox(1,"new ip just ip call",$ip,2)
$newvalue =_IEFormElementgetValue($dnsinputbox)
MsgBox(1,"new value set",$dnsinputbox,2)
        _IEQuit($oIE)
guictrlsetdata ($oldip,$ip)

 

now i set this up as if its a form but it not a form it a table and i need a little help please

<code from firefox under focus code tag>

<td id="tblARecords_0_pointstotd" class="datacell OneLinkNoTx" align="left">
<input id="tblARecords0hdnPreviousPointsto" value="2.125.69.0"
 

i just need tho change the value

thanks rob

Edited by SmOke_N
code boxes
Link to comment
Share on other sites

:alien:

here is the html code of the web page

<input onkeypress="EnterKeyLeaves(this.id,event);" onblur="LeaveTextBox(this.id, 'tblARecords_0_hlPointsto', 'tblARecords_0', 'arecord', 'data', 'tblARecords_0_pointstotd', 'Points to');" onfocus="CheckForSameRow('tblARecords_0');" onclick="ARecordNoEdit=true;" onchange="ARecordChange('tblARecords0hdnRecModified', 'tblARecords_0', 0, '0');" style="width: 400px; display: none;" id="tblARecords_0_txtPointsto" value="2.125.69.0" name="tblARecords_0_txtPointsto" type="text">

im  trying to change the value="2.125.69.0"

id = "tblARecords_0_txtPointsto"

how would i change the value ive tryed to submit it had a form but with no joy

please any help would be helpful

thanks rob

:alien:

Can you post website with that code in it?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

May I draw your attention to the edit button.

It's inexplicably hard to see, but on the same line as Quote button and becomes highlighted on mouseover post.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

He's telling you that you should edit your posts rather than repeatedly posting updates.

BTW, can you also please use code tags when posting code, it's very hard to follow the code without.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • Moderators

Gentleman, this thread has been reported for abuse.  Please keep comments in the thread specific to the request.  Thanks.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...