Jump to content
php.lv forumi
  • 0

json datu ielāde


coderpp

Question

Sveiki,

 

problēma tāda, ka netiek ielādēti json dati. Firebug rāda, ka no faila nav nekādas atbildes, bet atverot tieši browserī pieprasijuma linku, dati tiek izvadīti. json dati ir valīdi. tika pārbaudīti šeit - http://www.jsonlint.com/

 

Kods, kam butu jāielāde dati:

$.getJSON(
'json.php?type=images&action=load',
{id : $("#gallery_id").val(), lang: "lv"},
function(data){
}
);

 

Dati, kādus ģenerē pieprasītais fails:

{"4d6977ff07ef4.jpg":"","4d69786a4fed0.jpg":"","4d6978be27033.jpg":"","4d6979dd1f0ae.jpg":"","4d697c44cbc88.jpg":"","4d697f758cc91.jpg":"","4d698059c0256.jpg":"","4d6981cf72575.jpg":"","4d69835707c5a.jpg":"","4d698468c257b.jpg":"","4d6985852278a.jpg":""}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Nu Firebug rāda pilnu pieprasījuma linku. Nokopējot viņu un iekopējot pa taisno pārlūkprogrammā viss notiek. Fails uzģenerē datus un tie tiek izvadīti.

 

Pielikumā redzams, ko rāda firebug. Pie tam uz to pašu failu tiek veikti arī citi pieprasījumi - tie strādā.

post-4738-0-46840700-1298817290_thumb.png

Edited by coderpp
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...