May 30
Jim Sheffer Lasso 8.6, jquery & ajax help
May 30, 2014; 10:47
Jim Sheffer
Lasso 8.6, jquery & ajax help
Hello all-
I=92m trying to get a simple ajax call to work with Lasso and am having trouble.
Do I need to wrap the results in json to display?
If so, did I read somewhere that the json tag was added to Lasso 8.6?
I get the following results printed to the page from the code below:
name2: [var('name2=92)]
Here=92s the code on the checkout.inc page:
<?lassoscript
var('name2') = action_param('name');
?>
name2: [var('name2=92)]
And here=92s the test_ajax.lasso page:
<html>
<head>
<title>Testing Lasso & Ajax</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" language="javascript">
<!--
$(document).ready(function() {
$("#info1").click(function(event){
var name = $("#name").val();
$("#stage").load('inc/checkout.inc', {"name":name} );
});
});
-->
</script>
</head>
<body>
<form action="test_ajax.lasso" method="POST">
<p>Enter your name and click on the button:</p>
<input type="text" id="name" size="40" /><br />
<div id="stage" style="background-color:grey;">
STAGE
</div>
<input type="button" id="info1" value="Show Result" />
</form>
</body>
</html>
Thanks for any help - After 2 months in the hospital, my brain=92s still a bit foggy and I=92m just getting back to working :-)
James
James Sheffer jim@higherpowered.com
Lasso Developer http://www.higherpowered.com
phone: 469-256-0268
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
May 30
Brad Lindsay Re: Lasso 8.6, jquery & ajax help
May 30, 2014; 12:01
Brad Lindsay
Re: Lasso 8.6, jquery & ajax help
May 30
Jim Sheffer Re: Lasso 8.6, jquery & ajax help
May 30, 2014; 11:27
Jim Sheffer
Re: Lasso 8.6, jquery & ajax help
May 30
Brad Lindsay Re: Lasso 8.6, jquery & ajax help
May 30, 2014; 12:34
Brad Lindsay
Re: Lasso 8.6, jquery & ajax help
May 30
Jim Sheffer Re: Lasso 8.6, jquery & ajax help
May 30, 2014; 12:20
Jim Sheffer
Re: Lasso 8.6, jquery & ajax help
May 30
Brad Lindsay Re: Lasso 8.6, jquery & ajax help
May 30, 2014; 13:26
Brad Lindsay
Re: Lasso 8.6, jquery & ajax help
May 30
Jim Sheffer Re: Lasso 8.6, jquery & ajax help
May 30, 2014; 12:36
Jim Sheffer
Re: Lasso 8.6, jquery & ajax help