Thank you, is there also a way to store that value  as a Variable. And
would it matter if the input were within a form in the orignal
HTML,looking through the HTML they are the only input fields though?
thanks for the help

On Mar 3, 7:35 pm, Atul Varma <[email protected]> wrote:
> Hi Jordan,
>
> That's close, but I think what you're looking for is this:
>
> function cmd_blarg() {
>   var doc = Application.activeWindow.activeTab.document;
>   displayMessage(jQuery("input[name=MRN]",doc).val());
>
> }
>
> I used this on a data URI representing the HTML from your last email
> and it seemed to work okay:
>
>   data:text/html,<input type="HIDDEN" name="MRN" value="123456789">%0A
> %0A<input type="HIDDEN" name="NAME" value="John Doe">%0A<input
> type="HIDDEN" name="DOB" value="1920">%0A<input type="HIDDEN"
> name="SEX" value="F">
>
> - Atul
>
> On Mar 3, 1:01 pm, Jordan <[email protected]> wrote:
>
> > I am new to jquery and Im trying to get the input values for specific
> > input field names on the current active window.
>
> > the html looks like this:
>
> > <input type="HIDDEN" name="MRN" value="123456789">
>
> > <input type="HIDDEN" name="NAME" value="John Doe">
> > <input type="HIDDEN" name="DOB" value="1920">
> > <input type="HIDDEN" name="SEX" value="F">
>
> > so id like to have a variable MRN=123456789 and Name=John Doe etc...
>
> > this code doesnt seem to work:
> > var url = Application.activeWindow.activeTab.document.location.href;
> > var MRN = jQuery("input[name=MRN]",url).val();
> > pblock.innerHTML="Getting MRN " + MRN;
>
> > Any help would be appreciated thank you,
> > Jordan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to