0
Get a value from extern webpage
I want to get the value of a hidden input element,which is on a extern webside. it has no id just a name. is there a possibilty to get that? if yes how?
12 Réponses
+ 1
Yes it is possible just do the following:
var a = Document.GetElementByTagName("input")[?]; // At the ? put the Number position of the input ex if you want to get the top input ? is 0 and if you want the middle one of the three it should be 1.
a.value; // gets the value from a ex if we have a Number input and the input is 298 then a.value is 298.
+ 1
Search around for it and I Hope I helper!
0
And where do I direct to the extern website and does it matter that the input element is inside a form element (it's preset so no user input )
0
No it doesnt matter that the input is in a Form and wdym With "Where do I direct to the extern Website" I didnt quite understand ?
0
the elemnt is on a webside www.example.de and from there i need the elements value on my own Website so i can work with that
0
I dont Think that is possible I could be wrong
0
i think it is
0
Helped*
0
yes you did in case of the id problem thx a lot for that
0
No problem
0
found sth like a xml request ill test it now
0
ok