Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
zeeman73

Registered:
Posts: 44
Reply with quote  #1 
i like to crete a button that has a hyperlink in bed inside such that the parameter from one of the field drive the specif url to open
example 
http://toolbox.cva.uk.com/point_airs_AUTH21.asp?PAS=

when it = it open a specif parameter from UTH  which has values such as
2345
2344
2355
and i would like the hyperlink to open base upon what UTH is on the page i am looking at
Is that possible?
thanks
Zee
rmurga27

Registered:
Posts: 13
Reply with quote  #2 

I did this calling a Javascript function and open a new tab in the browser for the URL

Instructions

  1. Go to Toolbox
  2. Go to ASPX & Other Controls
  3. Expand the GEN option
  4. Drag and drop Button (HTML) control to the column and row you want the button
  5. Go to the Properties button
  6. Expand Button option
  7. Verify CommandName said Redirect
  8. Go to OnClientClickand write the URL name
  9. openURL(‘http://www.ironspeed.com/pagename.asp?Pass=’);
  10. Create a Javascript function on same page, you need to capture the parameter from the text field to a Variable using the object name of the textbox like this:

        var Var_Name = Document.getElementById('ctl00_PageContent_TextBoxName').value;

          Note: You can get the object name of the textbox using the Inspect Element form the browser, clicking the right button of the mouse

  1. Javascript example:

<script type="text/javascript">
     function openURL(url)
     {
          var Var_Name = Document.getElementById('ctl00_PageContent_TextBoxName').value;
          var w = window.open(url + Var_Name, '_blank');
          w.focus();
     }
</script>

 

zeeman73

Registered:
Posts: 44
Reply with quote  #3 
thank you very much
where do you put the script?
is it inside the click() code
miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,656
Reply with quote  #4 
put the script inside the page via the Page Directives area.

HTH,

__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement