Jump to content

oli22

Members
  • Posts

    59
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

oli22's Achievements

Member

Member (2/5)

0

Reputation

  1. There seem to be many ways of doing ajax outhere, i'm a newbee, so i thought about asking which simple effective ajax/JS method i should use to do this. Video embed code is refreshed by use of a php include when thumbnails are clicked. Instead of having full page refresh every time a thumb is clicked i would like to simply refresh that line of phpcode. Can you tell me which way is simplest and most effective ajax/JS to use for this? Here is the code i am using. Codes in thumb gallery which re-loads the include
  2. The question is about how i have placed <a href.../> tags. It makes whole area click-able but is placed in between other tags in a way that does not look like w3c compliant. Will this be potentially bad? Minor fault? or absolut ok? as you can see <a href> tags starts and ends inside between many tags instead of end & start of one tag
  3. Even better maybe would be to 'GET' somesort of id from videoThumbs.php so even the php include is writen in the xml, tha way ALL the info is in the xml tree. Thats the rest of my question i suppose Any avice about tecnical my solution???
  4. Ok i will read up on simplexml, which i know the basic to only use simple text. But i have found an easier way. Instead of getting the embed directly from xml i am using php includes with embeds in them, no harcore xml parsing required. From videoThumbs.php i use: Then use a 'GET' on playPage.php Use $playVideo variable to embed with an include Thats my basic quick working solution, i have to finish this thing fast. Next i will use 'simplexml' to show title and video description, no heavy duty parsing required for simple text... Its might be a little odd to have data coming from 2 places,1)the xml 2)includesFolder MAy be i will learn something else on my way there... By the way, i was thinking: Isn't it better to have an indivudual html page for each video&description for SEO? Any avice about tecnical my solution???
  5. The reason i was using this ajax code is because i was able to retrieve full embed codes without parsing html tags, sometimes by adding iframes.
  6. What i need to find is storing video embed codes(not only youtube) on a xml to retrieve them via php to play videos from list. It's not as easy as i thought, or is it?
  7. What php method is good for getting file from a .xml sheet ?
  8. HOW??? whats the code to get embed code from a file/xml sheet from incoming page?
  9. Thank you for response requinix I know how to use the 'GET' method to get certain info like title for thumb from page1 to page2, the part i don't know i how to make page 2 use the incoming info from page 1 and pull up embed code data from xml sheet like this code was doing(videos embeds from many sites not youtube ) ???
  10. I found this good demo code from : http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm#combo This is the index section This is the js that goes with it: But i would like the files to open on a new page/window instead of the original page. I am using it to create a video thumb page [ video_thumbs.php ] that opens embed codes in a 'play video' page[play_video.php] so want to make the links open in new window instead of the original window, probably need to change a path somewhere i the index and add a ."rightcolumn" in the 'video_thumbs.php' Hard for me easy for you?
  11. Have page#1 with thumbs view_thumbs.php , when a thumb is clicked thumb link goes to page#2 which is the video_play.php page(which must play embed codes from xml sheet) Using GET method to identify incoming link from page#1. QUESTION is how can i retrieve file(embed code) from xml to play on page#2 with incoming GET info from page#1? (embeds not you only from you tube, so no youtube solutions only, just retrieve file) I somehow have to fill play video div on page#2/video_play.php according to GET data from page#1/view_thumbs.php
  12. Actually i am doing the best i can with what i know Sorry, it can be accessed with links from index to subfolder, but i cannot pull any sections/folders directly from the sub folder to root folder as it will not easily allow it. The script has a scrary amount of folders that interlink... .tlp : not quite sure,but script is written in php using .tpl extensions is for modular architecture in a script , a step up from a regular cms, kind of like joomla, i also seen .tlp's in phpmelody csm .
  13. Iframe is from a cms i intalled in a site subfolder, it cannot be accessed thru my index, so forget about includes The script is written with .tlp's its actually more complex than a regular cms and for the moment i don't have tech knowledge to for a better work around.
  14. Thanks, what is the 1000 for? It refreshes? I was thinking of a 'onpageload '
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.