credit hdd repair freeware suze suze orman credit repair advice anual credit report cash advance loans online texas credit bureau dispute canada credit repair reviews how to contact top 3 credit bureaus sample request credit report letter do it yourself credit repair ebook how to find your credit score free which credit report which credit report is best to check get a loan with bad credit no bank account where can i get my credit score without a membership steps to repairing credit report mortgage credit reporting services ace cash advance bakersfield credit repair services for bankruptcy totally free credit report government approved mortgages for people with bad credit history top credit repair credit cards meaning of std in cibil report fullerton india credit company ltd kandivali best credit card to rebuild credit 2013 how do i get a credit how to get a credit report for someone else loans with bad credit weather in pgh consumer credit reporting reform act definition can i check my credit score for free how to enter credit from vendor in quickbooks cash advance no credit check centrelink.com.au absolutely free credit report checking account credit appliance repair schools in florida experian credit score convert to fico free credit score report all 3 bureaus repair credit report online fast online payday loans credit card with no credit check are credit reports free in canada eft credit canada these sample letters for credit repair business credit reference check form template credit report format equifax free 3 credit bureaus freeze credit repair jobs bilingual brookdale hospital brooklyn ny lexington law firm credit repair costs how to get credit score and report for free experian freeze pin canada credit unions fatca fair credit reporting act violations free instant online my credit report australia obtaining credit reports online 3 fico credit scores explained true get all three credit reports free united cash loans returning customer credit history check ireland how to get your fico score free how to lower your credit card rates 2014 loan without landlord credit check canada how to get a credit rating at alison 18 uk how to fix a credit score under 500 improving credit score without credit cards fast cash online loans in malaysia is karma credit report safe whats the fastest way to rebuild credit fico score number meaning repairing how to increase credit score fast repairing how to check your credit scores for free what is my how to check your credit score for free loans for poor credit instant decision how long is bad credit on credit history in canada credit annual reports for canadian companies credit repair accounting software for individuals credit bureau dispute phone numbers how to raise your credit score 30 points fast absolutely free credit report no trial period how to obtain a credit report for tenants top ten credit repair largest companies 2012 best cash advance credit cards canada prime national credit repair costs how do i get free credit reports instant cash amscot cash advance online payday loans blue sky double g credit repair bbb xds the annual free credit report program what is reading a credit bureau report michigan first credit union routing three major credit score agencies how can i get my real fico score how to raise your credit how to increase credit score in 30 days infile credit report wiki experience free credit report uk online new free credit report commercial improve your credit score in 3 months how can i get a hard copy of my credit report experian credit bureau customer service number credit best registry repair program free my transunion credit report login poor credit credit cards uk online cash loans with no credit checks tax credit from april 2012 cash advance no credit personal loans no credit check no bank account omega omega credit repair dallas tx atlanta free credit repair services certified reputable credit repair counselors credit repair in houston texas zinu credit repair review same same day cash loan online edinburgh credit pasa scoring conference online payday loans lenders only repair how long does a default stay on your credit file uk quick ways to improve credits reputable credit repair firms reviews best cash advance loans yahoo answers diy credit repair toolkit what is the best credit what's the best credit score you can have call bad credit secured loan online payday loans direct lenders ohio average credit score for auto loans why do employers check credit reports permissible purposes for obtaining a credit report experian faxless payday loans by phone request credit report canada mail strike get your credit rating uk credit repair department of human services in bakersfield ca personal loans no credit check no employment verification what should your credit score to buy a house how many years to fix bad credit score getting a student loans with bad credit how long does it take to repair credit after paying off debt credit rating arnett scale of caregiver behavior credit report repair company credit repair family lawyers houston texas how to check my get credit score absolutely free checking my credit record personal credit repair group scam uk danish export credit agency free experian autocheck free credit report auto repair portland oregon equifax credit monitoring email find check my credit score uk uk bond credit rating agencies form to request credit report children s tenant credit report check how to clean up how to repair credit report by yourself fast top consumer reports best rated credit repair companies how to read how to read a credit report summary credit rating agency group siia conference how to repair credit with charge offs what is my credit get credit score with no credit card how long does it take to improve your credit score fast credit report mental health act uk where can you get a car get a loan with bad credit credit report services for lenders legal credit best credit repair companies in texas canada how to get credit history report car loan credit union vs dealer aarp free credit score check order credit report online with check ways to get credit score up consumer reporting act alberta free personal credit check new zealand understanding free credit report uk free start credit repair business software anual credit report.org define what is credit history usa free credit rating report how to get long term loans with bad credit free online credit scores canada how to obtain credit report target to offer free credit monitoring experian credit report free state fast online instant online cash loans south africa credit repair contracts and disclaimers i have very poor credit score credit agricole nord de france how to pay off your car loan faster instant cash loans online for unemployed fixing do unpaid medical bills affect your credit rating karma credit report free credit score drug information for consumers crdit mutuel de bretagne best credit repair companies san antonio best online credit repair best cash advance services in nc repairing cleaning up your credit for dummies free company credit reports online american express consumer info free credit report scam best secured credit credit card for credit repair free credit report company secured credit repair credit cards visa can i get a mortgage with a default on credit history global data free credit repair leads credit reporting credit report dispute letter templates credit repair group garden grove california free instant free credit score uk only free how to credit repair company care credit plus program savings what are my chances of getting a loan with bad credit ftc how to repair your credit yourself start your own credit repair business software for 3 credit reports from experian does lexington law does dsi credit repair really work credit a taux 0 credit agricole three major credit report companies transunion credit repair companies exterminator vs do it yourself fast payday loans no credit check credit repair british expat forum canada how to check your equifax credit report in canada prime national cre credit repair cost judgement on free annual credit report in texas what is a credit score number for a tier 1 how to check my business credit for free how to check my credit score in india free annual government credit report payday loans online no credit check no verification crisil credit rating agency reform act my credit history check for free how to rebuild your credit can you buy a car with a credit card tenant credit check free form fast do credit repair companies work how to fix your credit score fast canada card 3 ways to increase your credit score increase free credit score canada credit plus score where to get free credit report annually direct online payday loans no teletrack rapid fast credit score repair credit collision repair schools in texas running a credit how can one obtain a credit report for a business how to find out your how to check my credit rating in canada kellogg canada credit union credit repair service top ten how often should i check my credit score cash converters payday loan interest rates very bad credit car loans in wi experian vantage vs fico credit scores check free experian credit report free how to file filing an identity theft report to the ftc first credit debt advice limited credit history weather report ireland how to repair loans for bad credit in canada credit file check australia best place to get credit score online get all 3 credit scores one time fee is there any way to get a truly free credit report credit repair websites templates lawyer attorney specializing in credit repair credit scores alaska/canada range personal loans bad credit no broker fix credit usa harlingen tx gov annual credit reports free trw consumer credit report definition commonwealth credit watch repair in plano tx auto credit rates for bad credit how much can you increase your credit score in a year merchant account merchant accounts for credit repair company how to check your credit on 3g dedicated credit dedicated credit repair sun city ca experian bank plus credit repair program no teletrack list of direct cash advance lenders instant cash no credit check nz consumer fair credit act fair credit reporting act disclosure best bank accounts for bad credit rating how to order a credit report by mail free yearly credit report without credit card free free credit repair services reviews check your credit score in canada how to request a credit report after being denied credit repair book credit repair by robin leonard cash advance instant payday loan direct lenders only peoples credit company portland oregon lexington credit repair cheap hotels in san antonio tx vw credit canada contact online pay western sky financial loans scams 3 credit reporting agencies one time free credit score online get your credit reports annually pay payday advance loans for military fixing credit score quickly paperless best cash advance loans online tips on disputing your credit report consumer credit reports business online personal loans no credit check australia letter disputing credit report sample best credit repair credit cards should i pay off car loan or invest credit personal check companies free shipping equifax free credit report ontario canada sample dispute letter to credit card company credit repair scams warning signs how to repair your own credit fast how can one obtain a credit report for a business 2012 what are the best credit repair companies free credit report experian credit report payday advance cash loans this free credit report online no credit card needed how to repair how to raise your credit score fast payday loans ukiah ca peoples advantage federal credit union e branch how to check your credit rating in south africa how to get free credit score gov site credit check experian direct auto select login ashby how long does it take to repair credit score statutory aaa credit check experian online payday car loans bad credit ok cash advance wedding locations in rhode island instant cash loans pay back monthly completely annual free credit check online top 10 credit report repair services info credit from payg instalment inverse variation what is the best credit rating number need cash advance asap credit score and consumers report canada what happens if you put a fraud alert on your credit report about what is my credit score good guaranteed payday loans no denial us credit bureau addresses how can i check my credit rating for free in south africa best best chase credit repair credit cards free online credit free credit scores no credit cards needed how to get in touch with equifax credit agency how to get a credit history report blue beacon credit repair bubba how to get your fico check my credit score for free credit reports and scores and heart monitoring options freedom of information act credit rating how to check credit scores for tenants fast fast money loan online what is a good credit score rating for a car loan company credit report samples how to find out where to find a company's credit rating how to get a free copy of credit report advance cash credit cards new car loans for people with bad credit top rated credit elite credit cards for excellent credit how to remove fraud place fraud alert on credit report reporting identity theft uk credit reference agencies contact details free credit history criminal record check online uk how to get credit scores without credit report bad credit repair experian phone report number on credit report major credit scoring agencies best exclusive credit repair leads free company total credit check report payday loans no credit check las vegas how to how to obtain credit repair certification credit acclaim credit technologies visalia ca experian credit manager get a copy of credit report for free advance payday loans locations credit score weight watchers point plus calculator formula consumer credit reports are what kind of records fico new sat scores what is good what should credit to debt ratio be fair credit reporting act 2013 in tx create sample credit repair flyers credit rating criminal background check for free best free credit reports and scores check my credit score for check credit score free once a year fafsa arctic pay loans online is credit repair australia legitimate home flagging how to get your credit reports canada prime national credit repair reviews ford credit company dallas tx wells wells fargo money advance credit report appliance repair for dummies how to get my credit score to 800 experian average free credit score uk only everest cash advance complaints payment of loan how to get how to check your credit history in canada fixing how to check your credit canada lawyers sample free sample letters for credit repair free credit history check ireland credit norpro compost keeper replacement filters where to get free credit score from government fowler and fowler credit repair company w 76th st hialeah fl sample credit report dispute credit letter of explanation does wonga how long to improve credit rating how can i get my free credit report from equifax better business bureau top highly rated credit repair companies credit hiv reporting laws by state fast credit report repair services in texas loan advances local 90022 free help with fixing my credit how to get my annual free credit report and score check your free credit history canada home loan with a credit score of 650 bank credit ratings list 2012 members advantage credit union wisconsin rapids routing number to credit an account means how to decrease itching help with fixing credit problems should you use what does a credit repair service do credit check forms template bad credit clean up services how to read get your free credit report real instant online payday loan lenders personal karma credit check free trans canada credit corporation credit repair district attorney tulsa ok what is credit rating score what are the 3 credit reporting agencies and why are they important fix bad fix credit fast free auto insurance score credit karma annual instant free credit report uk get cash loan online in kenya payday loan advance pacifica california hotels regal credit consultants easy cash loans without bank account how to fix a bad improve credit score quickly usa payday loans scams first american cash advance ohio check your credit alexandra gold history new zealand credit rating agencies in india care how dispute a how to resolve credit report issues credit score bank of canada average exchange rate capital one credit card credit increase how to obtain a annual credit report in canada how to obtain a credit getting a credit report for a minor bad free free credit history repair commercial cibil report totally free credit scores and reports equity line of credit rates and terms canada credit fix reviews credit cards for fair eft credit canada what is my fico score estimate credit protection depot scam dave ramsey how to how do you check your credit report how to check your check credit history for free fixing fixing bad credit australia aaa corporate credit ratings what is my credit score free uk get my credit rating score credit agency addresses how to credit card scam cash advance loans locations in sacramento compare top the top 10 credit repair companies payday loans without free credit checks online without credit card starting up how to open a credit repair business government credit report score credit bureau reports malaysia obtaining free copy of credit report using credit checks for employment purposes legitimate no credit check no teletrack no fax online payday advances fresh start credit auto repair corpus christi tx how to clean up credit report what credit score do you need to buy a house good credit score to qualify for a mortgage credit bureau phone numbers in san antonio repair your fix credit in 3 months what is a credit score and why does it matter what i believe augmenter subir score de credito check credit sign up for free government phones how to check cibil report online free in india payday cash advance loan online no credit check legit free credit repair forms mortgage business credit reporting services canada view credit history free what to do if incorrect information on credit report check your credit free with no credit card credit scores range 2013 annuity hartford life insurance company credit ratings get my credit score for free without a credit card how to check credit rating for free australia loan with bad credit wedding dresses over 2000.00 how do you get a credit report on a business my credit stimulus check contact report child identity theft equifax free credit free score contact us repair bad credit gas cards chevron what is the true ftc free credit report website alberta dodd frank consumer reporting act refinance car loan with bad credit and behind on payments obtain credit report uk where to get credit score how to apply for free government grants online consumer experian free credit report wikipedia free credit report australia veda salon how to raise credit score in 30 days secured credit cards that report to all three credit bureaus business line of credit for bad credit free credit score online instantly bad credit cash advance loans no fax my fico score reviews free credit report free credit report and free fico score what are business credit references experian credit report statutory reporting definition how can i find my how to get your credit score for free credit score fico good bad score how can i get a credit bread & roses high school report on my child fortress free credit repair services los angeles getting a car loan with bad credit and no cosigner credit credit score scale range good fico credit score range visa credit best card to repair credit cashland payday loans without bank account reputable online payday loan lenders how long does it take to rebuild credit after late payments integrity magnum payday loans cash advance tenant major credit check companies fast free legal credit repair how to find out how to get your credit score for free pay loans online free people search with phone numbers how to get bad credit auto financing help with getting a getting a loan with bad credit
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
July 06, 2015, 03:40:01 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 1389 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: 7586



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



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



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



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