homepage Welcome to WebmasterWorld Guest from 54.237.54.83
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
ipad1 Jquery Javascript
deepthi




msg:4397026
 12:01 pm on Dec 12, 2011 (gmt 0)


Hi all

I ve the following code in page1.php

<script>

function showSelected(val)
{

var show
=document.f1.selmodel.options[document.f1.selmodel.selectedIndex].value;
//alert(show);exit;


var url = "page2.php?id="+show;

//var response=new Array();
//response=eval('('+ajaxreq.responseText+')');


$.ajax({
type: "POST",
url: url,
data: "",
success: function(response){
$('#container').html('');
$('#container').append(response);

}


});



}
</script>

*****************************page2.php*****************
<script type="text/javascript">
alert('deepthi');exit;

// var unavailableDates = ["9-9-2011","14-9-2011","15-9-2011"];
var unavailableDates1= ["<?php echo join("\", \"", $getstartdates); ?>"];
var unavailableDates2= ["<?php echo join("\", \"", $getenddates); ?>"];
//alert(unavailableDates1);exit;
function unavailable1(date) {
var today = new Date();

var dmy = date.getDate() + "-" + (date.getMonth()+1) + "-" + date.getFullYear();
//alert(dmy);exit;
if ($.inArray(dmy,unavailableDates1) == -1) {

return [true, "","Available"];
} else {

return [false,"","Booked"];
}

**********************************

the alert msg in page2.php.(i.e deepthi )is working fine in all browsers ie 6,7,8 ,firefox etc and in ipad2.but it is not working in pad1.

will ipad1 supports ajax,jquery functions

to make work with ipad1 wat modification i need to do?
can anybody guide me

Thanks
Deepthi

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved