Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 9
There are 1 users currently browsing forums.
HTML/CSS Coding The basis of the World Wide Web, HTML, XHTML, and CSS make our forum possible, so it must be important right? Ask questions and receive help with these markups here.

Reply
  #1  
Old 10-05-2009
Stealther's Avatar
Stuck in the Code....
 
Join Date: Sep 2009
Location: In the code in the US
Age: 15
Posts: 82
Rep Power: 1
Stealther is on a distinguished road
Shoutbox in iframe?

Hey is the shoutbox in an <iframe> tag? I was wondering because everytime someone 'shouts' the shoutbox refreshes but not the whole page? I have used an iframe before but I noticed that when I type something in and 'shout'...I don't see a loading cursor and things like that. So can anyone tell me if the shoutbox is in an iframe?

Greatly appreciated!
Reply With Quote
  #2  
Old 10-05-2009
darkecho's Avatar
official undercover guy
 
Join Date: Aug 2005
Location: Michigan... USA
Age: 21
Posts: 2,597
Rep Power: 7
darkecho is on a distinguished road
Re: Shoutbox in iframe?

No its not. Its using AJAX on a Timer

JavaScript Timers with setTimeout and setInterval.
Reply With Quote
  #3  
Old 10-05-2009
Stealther's Avatar
Stuck in the Code....
 
Join Date: Sep 2009
Location: In the code in the US
Age: 15
Posts: 82
Rep Power: 1
Stealther is on a distinguished road
Re: Shoutbox in iframe?

Oh wow....I don't even know those things. But thanks for telling me...now I know it isn't in an iframe!
Reply With Quote
  #4  
Old 10-06-2009
Goodbye Youngcoders
 
Join Date: Dec 2005
Posts: 1,864
Rep Power: 6
Umang is on a distinguished road
Re: Shoutbox in iframe?

If you know some JS, and you want to get something similar yourself, just Google AJAX. You'll need to know PHP or some other server side script also (which will submit data to the JS script).

I think they're quite a few scripts out there that do all the complicated stuff themselves and let you do some very simple things to retrieve data. If you're still interested in knowing more after that, then you could go into how it works, etc. It is also possible to read complicated XML files using AJAX files. That means that the back-end needn't submit the HTML stuff itself (which would make the code pretty inflexible, wouldn't it?). It would only submit the information in a handy format and your JS would perform the necessary actions.

I did try going into all this, but I gave up pretty fast because I didn't see myself doing anything too complicated in AJAX for quite some time.

Just for fun, I suggest that you read up about what AJAX is. That way you'll know what's happening when you're browsing your email on GMail or chatting on Facebook (and the many other websites that use AJAX).

Thank you for posting a thread! You've not only learned something here, you've made this discussion potential reference material for many others (members of YC as well as people looking up on Google)
__________________
I'm off to sigcont.com
Reply With Quote
  #5  
Old 10-06-2009
darkecho's Avatar
official undercover guy
 
Join Date: Aug 2005
Location: Michigan... USA
Age: 21
Posts: 2,597
Rep Power: 7
darkecho is on a distinguished road
Re: Shoutbox in iframe?

Asynchronous JavaScript and XML - Notice the XML on the end. A lot of web apps you see that include "ajax" don't actually use XML. A large portion just return text or HTML, and some even use JSON. However, AJAT (text), AJAH (html), and AJAJ (json) all sound dumb, not catchy and would add to more confusion. My point is, don't think you have to use XML in order to use AJAX.
Reply With Quote
  #6  
Old 10-06-2009
Stealther's Avatar
Stuck in the Code....
 
Join Date: Sep 2009
Location: In the code in the US
Age: 15
Posts: 82
Rep Power: 1
Stealther is on a distinguished road
Re: Shoutbox in iframe?

Thanks for the tips and suggestions to both of you guys !!!!!!!!!!!!!!! I already know some PHP and I will try to look into AJAX!
Reply With Quote
  #7  
Old 03-10-2010
Looking#'s Avatar
Toddler
 
Join Date: Mar 2010
Location: Maryland
Posts: 24
Rep Power: 0
Looking# is on a distinguished road
Re: Shoutbox in iframe?

AJAX is a great language to know, and you can do some great things with it. For example, when you type your search terms into Google, the drop-down list of suggestions that you get is generated by AJAX, unless I'm much mistaken.
Reply With Quote
  #8  
Old 03-10-2010
hyp3R's Avatar
Heeeeeeeeeeeeeeeey!
 
Join Date: Apr 2006
Location: Brcko, Bosnia and Herzegovina
Age: 22
Posts: 530
Rep Power: 5
hyp3R is on a distinguished road
Re: Shoutbox in iframe?

You can simply download a whole Shoutbox script and implement it into your code. For now it's much faster and easier. After you implement it into your code, you'll see how it works and where to start. Simply, use your best friend, Google.
Reply With Quote
  #9  
Old 03-11-2010
Toddler
 
Join Date: Mar 2010
Posts: 12
Rep Power: 0
ed7991 is on a distinguished road
Re: Shoutbox in iframe?

yer AJAX doesn't have to be xml because i created a whole shoutbox with no XML
also another reason not to use XML is that the documentelement property does not work in IE

Stupid IE!!!
Reply With Quote


Reply

Tags
box, css, html, iframe, shout


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anchor in Iframe scrolls parent page bbosh HTML/CSS Coding 0 12-06-2007 01:57 PM
Embed Document like iframe types PHP Scripting 6 01-29-2007 10:27 AM
ASP and JavaScript working together Lesli JavaScript Coding 3 12-23-2006 04:54 AM
YC Awards '06 - Most shoutbox spam (nominations) sirjavabean Contests, Competitions and Games 11 12-17-2006 12:17 PM
Shoutbox Vio-Bear PHP Articles 0 09-04-2004 05:21 AM