var temp = new Array(new Array(0)) document.writeln(temp[0][0])
temp = new Array(new Array(0,1)) document.writeln(temp[0][0])
One would assume that it would print "0 0" that is the first elements of the arrays, but it prints "undefined 0". Why does temp[0][0] return undefined when there is only one element in the array but returns the first element correctly when there are at least two elements?
My Problem: Search Engine bots are not indexing my site due to 403 error from http - https javascript redirect
Since switching my site to an ssl cert google and all search engines are returning my site as a 403 forbidden and therefore not crawling/indexing.
Some info: Site: [URL] Server: Windows box with IIS6 http TO https redirect: is using the httpredirect.htm javascript custom error solution. This is assigned to the 403.4 server error. Seen here (I think this is the issue)
My thought is that google is seeing this code and it returns a 403 and the bots will not process the javascript to redirect.
OR
Google is seeing it as a 403.1 .2 .3 and I would need to assign that custom error page to those server errors as well.
I've been racking my head for two days trying to find a solution for this. I'm using jQuery.ajax() to grab values from the database to update a <select> box when another <select> box is changed. The php script grabs the values from the database and then spits out json. IT works fine in FF but in all versions of IE the select box doesn't get updated. I've confirmed that the json being output is good.
Here is the jquery:
Code: function getVendors(dest,selectSup) { var vend = $('select#sup').val(); $.ajax({
This may be a NOOB question and I am new to jquery itself so my syntax may just be incorrect but I do work with javascript and php quite a bit.Anyway here is a piece of sample code that is correct and does what is expected
[Code]...
From what I have read I believe the format is correct in my function. In PHP I have a print_r function that would dump an array where regular echo commands would simply output array so this may be a similar issue. I am not sure.
I am looking for a solution for many days: my callback - function works well in firefox 5, IE8, but not in safari, opera, IE7 etc. The function "checken" is not executed. There are no error messages in the debugger of safari or IE7.
var session_id = $.cookie("fe_typo_user"); function checken (nummer){ var elem = "#img" + nummer; $(elem).attr('checked',true); } var url = "refreshCheckboxes.php?id=" + session_id; $.getJSON(url,function(data){ $.each(data.posts, function(i,data){ checken (data.number); }); });
The response of the script: {"posts": [{"number":"1325"},{"number":"1303"},{"number":"1302"}]} html (example): <input type="checkbox" id="img1325" class="merkzettel" name="merkzettel1325" value="img_1325.jpg" />
You can test it here: [URL]. Activate some checkboxes, load another site and then go back to this site and the checkboxes you have selected, must be activated by the script.
I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu.My question is: Will search engine robots crawl the pages that are linked via the jump menu?So for example the page for the London branch can only be navigated to via the jump menu (or typing in the url in the address bar). Will a search engine index this page?The jump menu script is below:
<script type="text/javascript"> <!-- function MM_jumpMenuGo(objId,targ,restore){ //v9.0
I am a newbee and with the help of you all and google reseach and w3schools I have made the below jQuery Ajax method work fine with my data in xml (all the chapters of a childrens book). Now I am constructing a new page, just sample chapters, and I want to use json and 'get' it the same way as I did with xml. 1. I am hung up a little, firstly, this code below is not getting anything from the chap_0.json which is in the same directory so not a path problem file, 2. and secondly I am not sure just how different the code below needs to be to use the data from the .json file vs the xml file. If someone can atleast help me get the .json data to come in (problem 1) , I have been struggling with it for several hours now. Here is the working xml code:
In my page here: [URL]. I would like this working Cross Domain and output in JSON? code: <html> <body> <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(){ var townRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari .....
I have a html file that I want to load, loop through the json data and for each json entry I want to add a new block of the html and insert the json data into the matching div/class of the html. json looks like this:
So for each json entry of name/age, I want to insert that into the html, and then add another row, until all json data has been fetched. After this I want to insert all of this into #box, which is just a divthat should contain that html. Looping like this obviously does not work, since I just keep replacing the same html through the loop.
I have a JSON structure in API.When I call the API in my code it returns as the same JSON .I have to print this JSON result as table with pagination in Javascript. The table should be dynamic with previous and next buttons and the table should populate the results according to the JSON and each page should have 20 entries and then the remaining entries should go on the next page and I should be able to go back and forth in the table using previous and next respectively.tell me the exact code of how to start with getting JSON from the API and then write the JSON data in the form of dynamic table with pagination.
I need to return several values and I'd rather do it all in one ajax call. However there doesn't seem to be anything in data. Perhaps I'm way off here.
Every parse example I have seen on the internet is the well formed;
jQuery.parseJSON( ' {"sid":"123455","client_id":"1","last_name":"Anderson","first_name":"Alan","institution_id":"1"} '); What is the easy way to get from this; {"posts":[{"post":
i am trying to get the google json from my local host[URL]...and i getting: Line: 4984 Error: Access is denied. from the jquery what is missing? well this is the code
HTML Code:
<script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function () { alert("s"); var _url = 'https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=fuzzy%20monkey'; var _serverParam = "";
function showData(id) { $.get("/url/getdata", {id : id}, function(data) { $("#dialogData").html(data);
[code]....
no longer work with the addition of 1.5.Looking at firebug, the correct data is returned, but the function breaks after entering the callback.Everything simply stops.I read about the changes to Ajax call in 1.5, but I have over a thousand such calls through my project -> I cannot even begin to think about hunting them all down and changing them, let alone bug testing it all.
Using json to gather some data. Here's abridged version:
var ids = new Array(1,2,3,4,5,6,7); for(var i=0;i<ids.length;i++) { var site = '/ajax/get_feed' + '/<?=isset($dashboard) ? $dashboard : ''?>/' + ids[i]; var divID = ids[i]; getJSON(site, divID);
[Code]...
I remove the ajax loader image, then append data.result, where result is an html string. I want to animate the new content... I've never done something like the following,
$('#twitter img.ajaxloader').fadeOut(); $('#twitter').addClass('lefttext').append(data.result).fadeIn('slow'); I know this doesn't work. Essentially what I'd love to see is for my $('div.row') (the html string returned is wrapped inside a div with a class='row') to animate much like an accordion does when it opens. Just not sure how to get there.