Click here to Skip to main content
15,915,780 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: oracle query Pin
Hasan Ali19-Apr-07 5:37
Hasan Ali19-Apr-07 5:37 
GeneralRe: oracle query Pin
rama charan19-Apr-07 5:48
rama charan19-Apr-07 5:48 
GeneralRe: oracle query Pin
Hasan Ali19-Apr-07 7:26
Hasan Ali19-Apr-07 7:26 
GeneralRe: oracle query Pin
Hasan Ali19-Apr-07 8:52
Hasan Ali19-Apr-07 8:52 
GeneralRe: oracle query Pin
Hasan Ali19-Apr-07 8:54
Hasan Ali19-Apr-07 8:54 
GeneralRe: oracle query Pin
Hasan Ali19-Apr-07 9:09
Hasan Ali19-Apr-07 9:09 
Questionchat window Pin
saravanan0519-Apr-07 4:25
saravanan0519-Apr-07 4:25 
AnswerRe: chat window Pin
steffw19-Apr-07 4:31
steffw19-Apr-07 4:31 
first of all you would need an place for the output and a place to type Smile | :) You have a window now!

When i made my first chatbox i used some javascript(getting the text from te text file every 2 seconds, this with a XmlHttp object) and php (for placing the text you typed into a text file)

I'd made a function with some dutch words in it (cause i am), this one for getting the page, it works as follows: getPage('http://yourside/yourfile.txt,'divID to fill with result');

Now you only need a way to place the text in the text file, you can do this with an StreamWriter

<br />
var xmlHttp<br />
<br />
function GetXmlHttpObject()<br />
{<br />
    // XML object maken<br />
    var objXMLHttp=null<br />
    if (window.XMLHttpRequest) // FireFox<br />
    {<br />
        objXMLHttp=new XMLHttpRequest()<br />
    }<br />
    else if (window.ActiveXObject) // IE<br />
    {<br />
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")<br />
    }<br />
    return objXMLHttp<br />
}<br />
<br />
<br />
<br />
function getPage(str,doel)<br />
{<br />
    if (str.length==0)<br />
    {<br />
        document.getElementById(doel).innerHTML=""<br />
        return<br />
    }<br />
    xmlHttp=GetXmlHttpObject()<br />
    if (xmlHttp==null)<br />
    {<br />
        alert ("Browser does not support HTTP Request")<br />
        return<br />
    }<br />
    var url=str;<br />
    <br />
    xmlHttp.onreadystatechange = function stateChanged()<br />
    {<br />
        if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")<br />
        {<br />
            document.getElementById(doel).innerHTML=xmlHttp.responseText<br />
        }<br />
    }<br />
    xmlHttp.open("GET",url,true)<br />
    xmlHttp.send(null)<br />
}<br />


i hope i helped you, not sure if i did Smile | :)



Stef

QuestionRestrict User to visit any middle page Pin
meeram39519-Apr-07 4:18
meeram39519-Apr-07 4:18 
AnswerRe: Restrict User to visit any middle page Pin
Tarakeshwar Reddy19-Apr-07 4:40
professionalTarakeshwar Reddy19-Apr-07 4:40 
QuestionPass string to error page Pin
mail57235219-Apr-07 3:45
mail57235219-Apr-07 3:45 
AnswerRe: Pass string to error page Pin
Tarakeshwar Reddy19-Apr-07 3:55
professionalTarakeshwar Reddy19-Apr-07 3:55 
GeneralRe: Pass string to error page Pin
mail57235219-Apr-07 13:37
mail57235219-Apr-07 13:37 
QuestionHyperlinks in datagrid! Pin
nclauder19-Apr-07 3:27
nclauder19-Apr-07 3:27 
AnswerRe: Hyperlinks in datagrid! Pin
kubben19-Apr-07 5:32
kubben19-Apr-07 5:32 
GeneralRe: Hyperlinks in datagrid! Pin
nclauder19-Apr-07 19:24
nclauder19-Apr-07 19:24 
QuestionExport Excel Problem [modified] Pin
Karthik Kommandi19-Apr-07 3:01
Karthik Kommandi19-Apr-07 3:01 
QuestionProblem with DataReader and SQL Express Pin
kallileo19-Apr-07 2:15
kallileo19-Apr-07 2:15 
AnswerRe: Problem with DataReader and SQL Express Pin
Paddy Boyd19-Apr-07 2:24
Paddy Boyd19-Apr-07 2:24 
GeneralRe: Problem with DataReader and SQL Express Pin
kallileo19-Apr-07 2:55
kallileo19-Apr-07 2:55 
GeneralRe: Problem with DataReader and SQL Express Pin
Paddy Boyd19-Apr-07 3:03
Paddy Boyd19-Apr-07 3:03 
GeneralRe: Problem with DataReader and SQL Express Pin
kallileo19-Apr-07 3:09
kallileo19-Apr-07 3:09 
GeneralRe: Problem with DataReader and SQL Express Pin
Paddy Boyd19-Apr-07 3:25
Paddy Boyd19-Apr-07 3:25 
GeneralRe: Problem with DataReader and SQL Express Pin
kallileo19-Apr-07 3:35
kallileo19-Apr-07 3:35 
Questionpopup doubt Pin
saravanan0519-Apr-07 2:15
saravanan0519-Apr-07 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.