« first day (121 days earlier)      last day (533 days later) » 

8:49 AM
Hii Any here
 
9:19 AM
Can someone please have a look at my question stackoverflow.com/questions/16853763/…
 
 
8 hours later…
5:25 PM
Hey guys, can some1 look at this question for me please, I'm stuck with it for a few days now :/ any help is appriciated.
http://stackoverflow.com/questions/16761175/cant-find-element-in-dom-after-loading-it-with-ajax-want-to-bind-jquery-plug-i
 
 
4 hours later…
9:33 PM
:9742482
can someone please look at my question
0
Q: What would i use as a get request in jquery/ajax to set parameters

Michaeli am new to Jquery/Ajax and i am trying to have the source url for the json change based on the url parameters i setup, i have working version in PHP, but i don't know how to write it in JQuery This is my PHP Code (what i am currently using $id = urlencode($_GET['id']); $page = urlenco...

 
You're loading a json file with PHP, javascript can not do that unless it's on the same domain.
I could recommend having a connector in PHP that retrieves the json, and then have ajax contact that (your php file) instead.
 
my old code is in php, my new code is in jquery, i just don't know how to get jquery to alter the url when a parameter is added in the url (and it is all on the same domain)
the first page urlencode's the url to add the parameter id=ID_WOULD_GO_HERE, how can the jquery change the url source to address.com/playlist/ID_Would_Be_Fetched_From/whatever.json
I'm using the youtube api, the first page displays all my playlist, and when a playlist is clicked on it takes you to a page to display all the videos in that playlist, but in order for the video page to know what videos (and from what playlist) to get the videos from, i need to change the source url's information every time (the playlist id has to be changed)
 
9:51 PM
I posted an answer, please see if that meets your needs.
 
10:04 PM
im testing the code now, Thanks!
 
I have a live sample here: 24.79.127.251/tt.html?id=RD029cW4vF6U2Dc
notice the .html of the link, I have not used PHP, all javascript.
 
its working great, but my add more link isn't working anymore - ggcc.tv/yt.html?id=PL211CA3B80268E212
 
max-results is undefined
 
btw, i just upped your answer and checked it
in the last code that i had, there was a add more link which would add more result
 
change addMore($('#list li').length, 10); to addMore($('#list').length, 10);
oh wait it's a div?
 
10:11 PM
its a ol list
i just pasted in that line, it broke the script
i just reverted it back
this is what i got so far <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> YT Test</title>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>


<style type='text/css'>
ol {
list-style: decimal;

}
li{
width: 250px;
min-height: auto;
border: none;
display: inline-block;
margin: 5px;
/* padding:10px;
background-color: rgba(17,0,52,0.14);
border-radius: 5px;*/

}
</style>




<div id="list"></div>

<script>
$(document).ready(function() {
Dave, you there?
 
Got it to work.
Use addMore(id, $('#list li').size(), 10);
 
ill paste it in now and check it out
 
change

`addMore($('#list li').length, 10);`
->
`addMore(id, $('#list li').size(), 10);`
 
I'm trying to find that line, one second
 
it's under $('#addmore').on('click',function(e) {
 
10:17 PM
got it, its working perfectly
 
nice to hear, good luck in other ... aspects of your project :)
 
Thanks Dave!
 
I recommend having a spinner on the add more
as people might ... spam it because it doesn't load anything for a few moments
 
i don't know how to do stuff like that, i'm a newbie
i'd like to have the pull down to load more but i'm thinking thats very complicated to do
i'm planing on making it desktop and mobile friendly
Dave, how would i add a spinner or a scroll to load more?
 

« first day (121 days earlier)      last day (533 days later) »