penegra generika rezeptfrei elimite preise zyvox rezeptfrei test mitomycin c kosten plendil rezeptfrei kaufen vytorin rabatt online purchase citalopram billig liv 52 bestellen je periactin online apotheke buying micardis generika viagra toprol rabatt online xl zestoretic price us ditropan generika tabelle periactin rabatt online h&m pletal rabatt online buy aceon online apotheke wien metformin rabatt online kaufen sinemet rezeptfrei roxithromycin online apotheke test bupropion sr bestellen half life suprax generika indien china kamagra online bestellen zollfrei calcium carbonate preis common name shatavari durchschnittliche kosten fУМhrerschein calcium carbonate market price tamoxifen bestellen rogaine 5 medikamente schaum nexium online apotheke a prescription slim tea online bestellen jeans bupropion sr verkauf generic price effexor generika indien seroquel online apotheke ordering arimidex generika hersteller imdur generika indien amoxicillin online apotheke antibiotics micardis rabatt online plus voltaren rabatt online schmerzgel online-apotheke furosemide online bestellen buy kamagra oral jelly preis betapace generika suche ayurslim online apotheke juvalis rabatt cialis hersteller voltaren spray preis xalatan preis qm estrace medikamente liste methotrexate durchschnittliche kosten lebensmittel kaufen billig aldactone kaufen isoptin online bestellen xenos shatavari online apotheke gУМnstig strattera preis qm rogaine 5 medikamente australia metoclopramide generika hersteller bupropion sr rezeptfrei depression kaufen bupropion sr weight loss kytril medikamente liste lotrisone generika liste zyrtec rabatt online order mycelex-g rabatt online youtube lotensin rezeptfrei apotheke paxil online apotheke pharmacy keflex online apotheke yokebe betnovate durchschnittliche kosten lebensmittel serophene online bestellen ikea kosten digoxin nebenwirkungen lynoral generika rezeptfrei bupropion sr verkauf withdrawal symptoms bestina generika apotheke bactroban nasal bestellen ralista online bestellen online rabatt paroxetine reviews billig slim tea pai you guo billig saw palmetto zararlarФБ skelaxin online apotheke niederlande duphalac durchschnittliche kosten lebensmittel clozaril pille preis grifulvin v rezeptfrei alcohol rabatt clarinex reviews augmentin online apotheke cheap nasonex online bestellen australia slim tea rabatt online dr kaufen bupropion sr when to take kaufen billig endep tv plavix generika kaufen billig liv 52 que sirve amaryl rezeptfrei italien prednisone online apotheke shop regaine 5 preisvergleich elavil generika deutschland kaufen billig betnovate lotion premarin online apotheke australia endep rabatt online jeans prilosec rabatt online free imdur preis mg propranolol pille danach aygestin online bestellen ikea billig rogaine 5 reviews kosten liv 52 q sirve cafergot generika hersteller copegus online apotheke xanten tadalis online bestellen online lasix online apotheke rx ashwagandha kaufen berlin inderal online apotheke canada big appeal rezeptfrei dig amoxicillin online apotheke australia detrol medikamente liste bupropion sr verkauf generic claritin generika schweiz chloroquine phosphate price uk metoclopramide generika liste diltiazem rabatt online shop crestor online bestellen wien ciprofloxacin pille lamuna 20 kaufen fosamax baclofen - ein medikament gegen alkoholsucht dutas rabatt online majalah adalat online apotheke hydrea generika schweiz fertomid online bestellen in south africa cialis kaufen nachnahme xenical dubai price emsam rabatt online h&m eulexin online apotheke preisvergleich actos online bestellen xenos calcium carbonate verkauf your heart prevacid online apotheke cheap kaufen billig endep vans bactrim online bestellen test rogaine 5 generika vs 10 billig liv 52 himalaya products rogaine 5 preisvergleich bestellen orlistat online apotheke sandoz coreg online apotheke juvalis beconase aqueous rezeptfrei beclometasone nexium online apotheke order prevacid online apotheke yokebe kaufen propranolol alkohol bupropion sr pille you high lanoxin verkauf nexium medikament preis kaufen billig dapoxetine beconase aqueous preisvergleich effects rabatt nizagara online kaufen bupropion sr coupons endep online apotheke viagra maxalt generika preisvergleich endep rabatt online gutschein vytorin verkauf hyzaar verkauf stromectol online bestellen buy paxil rezeptfrei italien kaufen bupropion sr not working medrol online bestellen pack motilium bestellen endep rabatt online amazon zyvox rabatt online apotheke unisom medikamente bupron sr pille price generika yasminelle provera rabatt online radnog staza amaryl online apotheke xanten citalopram nebenwirkungen erfahrungen citalopram rabatt online free olanzapin medikamentengruppe norvasc online apotheke juvalis lamictal preisvergleich kosten doxazosin aristocort pille online rabatt periactin dose adalat rabatt online apni tv benicar generika indien youtube arcoxia mit pille kaufen femara kaufen glucovance rezeptfrei frankreich keppra saft preis lasix rabatt online buy etodolac pille online torsemide generika tУМrkei zofran generika indien reisen cialis kaufen luxemburg cialis kaufen rezeptfrei paypal zoloft rabatt online cheapest colchicine online bestellen uk ophthacare generika preisvergleich geriforte kaufen billig liv 52 inhaltsstoffe zoloft price walmart slim tea preisvergleich ultra procardia online apotheke buy kaufen tretinoin nebenwirkungen omnicef preisvergleich yokebe zebeta generika indien youtube septilin durchschnittliche kosten lebensmittel zoloft generika tabelle aldara generika zoll flonase price walgreens kaufen flomax kleidung badewanne alessi preis ranitidin wechselwirkungen pille aristocort generika preisvergleich protonix generika rezeptfrei arcoxia online bestellen gУМnstig precose durchschnittliche kosten lebensmittel naltrexone rezeptfrei online kaufen billig finasterid haarausfall brahmi rezeptfrei italien kosten isoptin wirkstoff rabatt plaquenil eye combivent rezeptfrei wo endep online apotheke homУЖopathie dipyridamole online apotheke niederlande chloramphenicol rabatt online free clonidine durchschnittliche kosten lebensmittel actos online apotheke registo robaxin price walmart billig liv 52 ebi pharm prednisone online apotheke buy colchicine medikamente liste billig bupropion sr xl difference imitrex rabatt online nasal spray billig metformin bupropion sr pille xl for weight loss venlor rezeptfrei schweiz premarin online bestellen prescription protonix generika kaufen prograf online apotheke test prograf online apotheke deutschland benicar online bestellen pharmacy silvitra rezeptfrei deutschland seroquel rezeptfrei kaufen alessi preisvergleich clomid online bestellen in usa beconase aq preisvergleich manufacturer ranitidine online bestellen wien buspar generika suche glycomet generika tabelle azulfidine durchschnittliche kosten implantat billig rogaine 5 usa saw palmetto generika preisvergleich kosten lozol billig slim tea from india kosten lithium ionen speicher beconase aq rezeptfrei who makes lasuna rezeptfrei insektenstich rogaine 2 pillen rabatt celebrex high cialis rezeptfrei frankreich zantac rezeptfrei holland benicar pille danach hytrin rezeptfrei lУЄnder yasmin online apotheke travels lasix rabatt online for sale plavix medikament preis diclofenac ratiopharm preis alavert generika indien kosten v gel order rosuvastatin online apotheke kaufen kaufen detrol tulasi generika indien terramycin rezeptfrei holland billig saw palmetto gegen haarausfall rogaine 2 pille lotion reviews lioresal online bestellen deutschland benicar online bestellen canada keftab generika hersteller sarafem preis qm nicotinell pflaster 21 stУМck preisvergleich dapoxetin online bestellen billig rabatt cafergot discontinued diltiazem salbe bestellen rogaine 5 generika year astelin online apotheke deutschland slim tea preisvergleich www easy halv viagra pille imitrex rabatt online kaufen zyvox rezeptfrei online saw palmetto verkauf ultra augmentin rezeptfrei deutschland yasmin online apotheke recept kosten tretinoine creme zebeta online bestellen vergleich grifulvin v bestellen manufacturer actos generika indien china kosten cardizem er levitra generika bestellen reglan rezeptfrei apotheke prednisolon hund online bestellen kaufen billig forzest billig accutane erfahrung kosten saw palmetto hair cardizem bestellen lotrisone generika billig saw palmetto ultra serophene generika kaufen billig saw palmetto hair loss dosage trial erection packs medikamente benicar online bestellen test penegra rabatt online calcium carbonate verkauf cas mobic online bestellen deutschland pristiq piller periactin online apotheke cheap diovan online apotheke order bystolic rezeptfrei italien kaufen billig endep neuwagen colospa rezeptfrei apotheke zestoretic online apotheke test lady era preis cristiana rabatt lanoxin y38 kaufen ginseng roter toprol rabatt online rabatt zovirax kosten serophene generika rezeptfrei torsemide generika preisvergleich prednisone pille cortison actonel medikament adalat online apotheke index zantac online bestellen online dostinex tabletten preis lipitor rezeptfrei niederlande proscar online apotheke test kaufen billig viagra cialis beconase aq rezeptfrei coupon tofranil generika indien china bupropion sr bestellen side effects carafate generika evista online apotheke gУМnstig vermox bestellen rezeptfrei geriforte rezeptfrei schweiz brahmi online bestellen vergleich seroquel 300 mg preis mircette online bestellen ikea exelon generika erfahrungen zyvox rabatt online for sale feldene generika indien china billig cephalexin claritin generika viagra kosten maxalt bestellen liv 52 bestellen www himalaya billig rogaine 5 kosten vermox mebendazol voltaren rezeptfrei wien coreg generika rezeptfrei kaufen billig duetact yasmin online apotheke berlin levitra belgien kaufen kaufen billig zyban ohne rezept voltaren rabatt online order kosten rogaine 5 liquid medikamente mit bupropion nasonex rezeptfrei kaufen sildalis rabatt online h&m mycelex-g generika schweiz ceftin preisvergleich yokebe motilium lingual kaufen endep online apotheke deutschland lieferung schweiz luvox verkauf kosten toprol phenergan generika liste kosten cialis 20mg viagra rezeptfrei nУМrnberg mobilheim billig kaufen doxycycline rezeptfrei wien zantac online bestellen wien ginseng generika indien china accutane pille qlaira zyvox rezeptfrei holland benzac online apotheke compra benicar rezeptfrei frankreich orlistat online apotheke venda zofran price walgreens billig lady era fl kaufen billig endep haus allegra rabatt online bula unisom generika preisvergleich zyprexa online bestellen prescription skelaxin pillen bupropion sr medikamente er xl deltasone preisvergleich styplon online bestellen vergleich aygestin online bestellen vergleich kaufen lamictal schwangerschaft toprol rabatt online apotheke rabatt diakof himalaya clonidin online kaufen vytorin price malaysia vasodilan generika hersteller clindamycin 600 preisvergleich risperdal preis uk viagra billig kaufen ohne rezept rumalaya forte price in india saw palmetto verkauf vitamin endep rabatt online im vodafone shop billig lamisil copegus online apotheke beeintrУЄchtigt nitrofurantoin die pille arcoxia online bestellen mg zanaflex preise grifulvin v rezeptfrei tablets side effects deltasone online apotheke holland gyne-lotrimin generika tabelle kaufen advair pariet online bestellen schweiz sildalis preis qm slimex bestellen in nederland robaxin online bestellen pharmacy diclofenac kaufen rezeptfrei cialis rezeptfrei lastschrift orlistat online apotheke shop bactroban rezeptfrei insektenstich kaufen billig dipyridamole rezept endep rabatt online mango kemadrin verkauf levitra generika erfahrung yasmin online apotheke australia prograf rezeptfrei apotheke astelin preisvergleich viagra pille carafate rezeptfrei holland slimming tea preisvergleich leaf silvitra rezeptfrei apotheke fluoxetine rabatt online for sale voveran online bestellen ikea minocycline generika indien trimox rezeptfrei apotheke medikament citalopram dura 20mg kaufen billig florinef kaufen kaufen billig evista nebenwirkungen bupropion sr verkauf anxiety nasonex generika indien china vermox generika gУМnstig lozol online bestellen nederland levitra generika online generika arcoxia mg skelaxin rabatt online youtube allopurinol preis deutschland artane preis mg metformin durchschnittliche kosten privatrezept myambutol online bestellen gУМnstig zyvox rezeptfrei wien billig ampicillin unterschied trileptal 600 preis hydrea medikamente rabatt tadacip review big appeal medikamente breast cream digoxin rezeptfrei kaufen kaufen flagyl er hvad keflex online apotheke buy rogaine 5 preisvergleich lotion malegra rezeptfrei holland flomax online shop npxl pille calan online bestellen vergleich panmycin generika liste saw palmetto verkauf raises estrogen kosten lithium akku rogaine 5 medikamente price atorlip 20 preis atorlip atorvastatina 20 mg paroxetine price walgreens baclofen price philippines billig baclofen hersteller betnovate durchschnittliche kosten qm clindamycin generika viagra dipyridamole online apotheke deutschland elavil rezeptfrei lУЄnder venlo kein verkauf an deutsche ophthacare rabatt online youtube pamelor pille qlaira lasuna rezeptfrei endep online apotheke juvalis was kosten levitra serpina durchschnittliche kosten kaufen billig dutasterid phexin durchschnittliche kosten fУМhrerschein rogaine 5 preisvergleich nizoral 2 ketoconazole nitrofurantoin 100 mg und pille billig bupropion sr generic price ginseng rabatt online american speman generika preisvergleich alesse generika liste lamisil creme preise mycelex-g online bestellen slim tea preisvergleich about easy flexisyn rabatt online yasmin online apotheke to buy cholestoplex online bestellen gУМnstig diclofenac online apotheke mail kosten saw palmetto extract bupropion sr pille u12 billig cymbalta nebenwirkungen kaufen billig betnovate creme wellbutrin online apotheke canada levitra generika ohne rezept kaufen detrol rezeptfrei bestellen billig lady era o mujer alli kosten apotheke rogaine 2 rabatt online youtube ginseng preisvergleich roter cabergoline online apotheke prescription doxazosin rezeptfrei bestellen
Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow Form Button and JavaScript Access Session Variables
NetTalk Central
February 07, 2016, 12:19:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Form Button and JavaScript Access Session Variables  (Read 1971 times)
springguy
Full Member
***
Posts: 184


View Profile Email
« on: May 18, 2012, 08:06:53 AM »

Looking for general understanding/approach.

If you have a button added to a form, and when the button is clicked, you want to do some local analysis of a variable and if there is a problem with the variable data, popup an error, otherwise call a procedure or web page.

What is the best strategy for that?  Is it to call javascript before the OnClick procedure or URL call?  If so, how does the javascript access the variable NT data?  A simple, conceptual example would be helpful.

Or, is a better strategy to call a source procedure on the OnClick and depending on the clarion code there, call the appropriate procedure or web site?

Mike
Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 7965



View Profile
« Reply #1 on: May 18, 2012, 09:38:44 PM »

Hi Mike,

>> If you have a button added to a form, and when the button is clicked, you want to do some local analysis of a variable and if there is a problem with the variable data, popup an error, otherwise call a procedure or web page.

This is such a common question, but unfortunately you've got it the wrong way around. Decisions are made in the _browser_ not on the server. The poppping-up-an-error is ok. To change the page you'd do something like;

p_web.Script('href.location="somepage"')

I'm not sure what you mean by "call a procedure" - the context of that you need to explain more.

Cheers
Bruce
Logged
springguy
Full Member
***
Posts: 184


View Profile Email
« Reply #2 on: May 19, 2012, 08:43:16 AM »

Thanks Bruce.

I have a specific case where I have a form with an added button.  The purpose of the button is to send an email based on information in the form data.  Using example 11, this was pretty straightforward, and works well.

However, if a data variable in the record has a certain value, then I do not want to send an email, but would rather popup a message telling the user why they cannot send an email, and then return to the form.

What I have been forced to do at the moment is to disable the button if the field value has that certain value.  That's workable, I guess, but it requires the user to understand why it is disabled, rather than the system telling them why.

So, what I am trying to get straight is when I click an added button on a Form, what is the best approach in general to do the following:

1. interrogate a variable on the record (or in a session variable)

2. have code (JavaScript I assume) that, on the basis of the variable contents, will popup a message within the browser, or...

3. call a different NT procedure or web page to do the analysis and action taking.

I don't know anything about JavaScript (yet, I suppose) to know if doing something like interrogating a value and calling for one of a multiple set of actions is possible - I assume it is, but how, and is that the best approach?

OR, is it a better approach (for us clarion guys) to have the button click call a NT source procedure that will interrogate a variable and then have it take one of a series of actions?

OR, is there a different, better approach that you would recommend. 

I would not be surprised that this is a pretty common question for us clarion guys, and I am slowly getting a better understanding of the "web programming" evironment of NT, but can you give us some practical guidance on how to interrogate a variable on a form when an added button is clicked and take a variety of actions depending on the value in the variable (ie popup, go to a NT procedure, go to a web page, etc).

Does that help clarify?
Mike
Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 7965



View Profile
« Reply #3 on: May 19, 2012, 10:36:24 PM »

Hi Mike,

>> can you give us some practical guidance on how to interrogate a variable on a form when an added button is clicked

The form value is in the session queue at that point.

>> I have been forced to do at the moment is to disable the button if the field value has that certain value.  That's workable, I guess, but it requires the user to understand why it is disabled, rather than the system telling them why.

that's what "comments" are for. You can set the comment of the button to explain why it is disabled.

Cheers
Bruce

Logged
springguy
Full Member
***
Posts: 184


View Profile Email
« Reply #4 on: May 20, 2012, 04:09:22 AM »

Bruce,
I really appreciate your comments over the weekend.

I do understand that the values are in the session queue.  I think what I am asking is "can JavaScript access those values, and if so, can you give a simple example of what a piece of JS code would look like that does access a session value". If that is possible, then it opens an interesting door of possibilities in client side dynamics. 

Regarding using the comments to explain a situation, I had never thought of that as being a dynamic set of comment.  Thanks for the suggestion - I think I can run with that.
Mike
Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 7965



View Profile
« Reply #5 on: May 20, 2012, 09:24:56 PM »

>> can JavaScript access those values,

no, not directly of course. the values are on the server side. To get the current value of one of them, the browser could "ask" (as in make an asynchronous request) and perhaps you have a web page that'll return that value - but there's no "GetSessionValue" function.)

also the request would be asynchronous, so it would be somewhat harder to use unless you were familiar with JavaScript callbacks etc.

cheers
Bruce
Logged
kevin plummer
Hero Member
*****
Posts: 1138



View Profile WWW
« Reply #6 on: May 20, 2012, 10:34:17 PM »

Hi Mike,

If you are just starting out in the web I wouldn't be too quick to jump in and start trying to use Javascipt. For the most part NTW protects us from that big bad world which makes the learning curve much easier. In your case the way I see it is you have 2 options. One, disable the button and use the comments field or insert a field to let the user know why the button is disable and enable the button when everything is good. Two, create a popup error form. Set the URL on your button to be dynamic (a GSV) and update this variable to be either the popup form or your email procedure. The caveat is if you can popup a form from a button from the templates. I hand coded this in NTW5 and without template support would be too complicated to work out.

Cheers,

Kev
Logged
springguy
Full Member
***
Posts: 184


View Profile Email
« Reply #7 on: May 21, 2012, 02:06:18 AM »

Thanks Bruce and Kevin,
I really appreciate your advice.
Mike
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register
home contact search contact search