|
Actually I was looking into how exactly the tag would be handled...
I am currently trying to implement how exactly the image would be downloaded on coming across an IMG tag in a HTML..
Basic idea was to gradually build a browser .. so i was catching up on features of browser like hyperlink,Image rendering....
I would like to know how the images are queued up for downloading ...
What are the series of events that occur when we come across the IMG tag in a HTML...
I guess if we go by the generic architecture we have something called the Download Manager...
Can someone shed some light on the design and coding aspects
|
|
|
|
|
hi
i have asp dropdown with very long list, when i click on it show me around 30 items, and if items are more shows scroll bar, i want to remove this list to short, say 10 items and if items are more then 10 show scroll bar. can anyone tell me how can i do this.
Regards
Shajeel
|
|
|
|
|
|
I'm trying to send some form variable to my email address, however it doesn't work and I can't seem to figure out why.
Any help would be appreciated. Thanks!
<?php
if ($_POST) {
$FirstName = $_POST['firstname'];
$LastName = $_POST['lastname'];
$PhoneNumber = $_POST['phonenumber'];
$Email = $_POST['email'];
$City = $_POST['city'];
$State = $_POST['state'];
$Zip = $_POST['zip'];
$QuestComment = $_POST['questcomment'];
$to = "myemail@mysite.com";
$subject = "Question/Comment website user";
$message =
'First Name:'.$FirstName . "\r\n" .
'Last Name:'.$Last Name . "\r\n" .
'Phone Number:'.$PhoneNumber . "\r\n" .
'Email Address:'.$Email . "\r\n" .
'City:'.$City . "\r\n" .
'State:'.$State . "\r\n" .
'Zip:'.$Zip . "\r\n" .
'Question or Comment:'.$QuestComment . "\r\n";
}
else {
die ('You can't submit an empty form?');
}
$headers = 'From: ' . $Email . "\r\n";
mail ($to, $subject, $message, $headers);
?>
|
|
|
|
|
Hi,
Try replacing: if ($_POST) {
With: if ($_SERVER['REQUEST_METHOD']=="POST") {
If I remember right $_POST, along with $_GET, $_REQUEST, $_SESSION and $_COOKIE, are always set no matter what HTTP method is used to call the script.
Graham.
|
|
|
|
|
Read this, then come back and re-write your question.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi everybody,I'm a new comer to javascript.I have a question.English is not my mother language.I'll try my best to explain clearly what I mean.
Look at the following code:
<br />
<script type="text/javascript" language="javascript"><br />
<br />
var CallComplete;<br />
function MyFunction()<br />
{<br />
CallComplete = false;<br />
<br />
SeverMethod(CallBack);<br />
<br />
while (!CallComplete)<br />
{<br />
}<br />
return something;<br />
}<br />
<br />
function CallBack(response)<br />
{<br />
...<br />
CallComplete = true;<br />
}<br />
<br />
</script><br />
The ServerMethod is quite simple,and it will return immediately if I remove the while loop from the above code.But MyFuntion must wait for the severmethod's data to return values.
Is there any better way waiting for the asynchronous call complete? Any idea will be appropriate.
|
|
|
|
|
The reason for having a callback is that you don't need to wait for the call to complete. When it completes the callback method is executed. Whatever you need to do after the call completes, you can put in the callback method.
---
b { font-weight: normal; }
|
|
|
|
|
Hi guys..
How can i disable an html textbox?
|
|
|
|
|
It is too simple ....
vivek
|
|
|
|
|
It worked
Thank you
|
|
|
|
|
|
I have three different styles of links that I would like to have on page...
1. General links on the page
2. Navigation menu links
3. Page footer
The problem I'm having is that the different styles keep on affecting other ones randomly. For example, the general links on the page are supposed to be in (Verdana, Helvetica, Arial, sans-serif), however they are inheriting (monospace) from the footer?!?
I have the navigation menu setup in a div like this:
****************************************************
<div id="navmenu">
<a href="#">Menu Link 1</a>
<a href="#">Menu Link 2</a>
</div>
****************************************************
...and the footer setup liks this:
****************************************************
<div id="footer">
click <a href="#"> here </a>
****************************************************
Here is my CSS code:
****************************************************
/*NAVIGATION MENU LINK PROPERTIES*/
#navmenu a, a:link, a:visited, a:active {
padding-left: 25px;
padding-top: 5px;
padding-bottom: 5px;
font-variant: small-caps;
line-height: 30px;
letter-spacing: +1px;
font-family: cursive;
font-size: 12px;}
/*NAVIGATION HOVER PROPERTIES*/
#navmenu a:hover {
color: #eded0a;}
/*GENERAL LINK PROPERTIES*/
a, a:link, a:visited, a:active {
padding: 0px;
margin: 0px;
color: #f8f8f8;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-indent: 0px;
text-align: left;
font-variant: normal;
text-transform: none;}
a:hover {
padding: 0px;
margin: 0px;
color: #f8f8f8;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
font-weight: normal;
font-style: normal;
text-decoration: underline;
text-indent: 0px;
text-align: left;
font-variant: normal;
text-transform: none;}
#footer a, a:link, a:visited, a:active {
font-family: monospace;
font-variant: normal;
padding: 0px;
font-size: 10px;}
****************************************************
Thanks for any help you can give!
|
|
|
|
|
That is because you have specified the id for the a and a:hover elements only, the a:link, a:visited and a:active also need the id:
#navmenu a, #navmenu a:link, #navmenu a:visited, #navmenu a:active {<br />
<br />
#footer a, #footer a:link, #footer a:visited, #footer a:active {
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the responce. That worked perfectly!
|
|
|
|
|
Hi,
Is Inheritance of class possible in VBScript?
Can any one give me an example please?
Thanks,
Karthikeyan A
|
|
|
|
|
Karthikeyan_A wrote: Is Inheritance of class possible in VBScript?
No.
---
b { font-weight: normal; }
|
|
|
|
|
How can we read xml file in netscape 6.2 through javascripting can someone please give
me some links for doing so. I tried with httprequest object but could not do it.
it was like
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
if (xmlhttp)
{
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
var x;
x=xmlhttp.responseXML;
var y = x.getElementsByTagName('topic');
var k;
for(k=0;k<12;k++)
{gvtopics[k]= y[k].getElementsByTagName('topicname')[0].firstChild.data;
alert(gvtopics[k]);
}
}
}
xmlhttp.open("GET","menu.xml",true)
xmlhttp.send(null)
}
}
|
|
|
|
|
this is my code...and i want the code to display two fields together concatenate them in the list box that is the code and description...when i run it with in the browser displays a Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')' line 64, column 47
<%
Set oRs=Server.CreateObject("adodb.recordset")
strSQL = "SELECT code ,description FROM projects"
oRs.Open strSQL, conn
Do while not oRs.EOF
if Request.Form("code") = oRs("Code") then
Response.Write ("& ("description") ")
oRs.MoveNext
else
Response.Write ("& ("description") ")
oRs.MoveNext
end if
loop
%>
bobo
|
|
|
|
|
Should this not be:
bobolov wrote: Response.Write ("& ("description") ")
Response.Write ("" & oRs.Fields("description") & " "
|
|
|
|
|
is there any other way doing this...i need two feilds in the listbox option...thanks for all the help...im new to this ...
Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
<%
Set oRs=Server.CreateObject("adodb.recordset")
strSQL = "SELECT code ,description FROM projects"
oRs.Open strSQL, conn
Do while not oRs.EOF
if Request.Form("code") = oRs("Code") then
Response.Write ("" & oRs.Fields("description") & " "
oRs.MoveNext
else
Response.Write ("" & oRs.Fields("description") & " "
oRs.MoveNext
end if
loop
%>
bobo...
-- modified at 2:22 Tuesday 13th June, 2006
|
|
|
|
|
hi,
Can anyone tell me how can i send mails without using SMTP Server provided by .NET (without using SMTPServer.Send())
I want to send mails in a large number so i dont want to use the relay server of the IIS, as it is slow.
Can anyone tell me how i can bypass the SMTP Server and directly send mail to the internet.
It will be a great help,
Thanks
Sushant Duggal.
|
|
|
|
|
Hi all,
Firstly I apologise if I have posted this in the wrong place as my query has alot to do with ie aswell as dhtml.
I have a website which uses a horizontal sliding/accordian menu, which displays the site content. When a user selects a menu item the menu slides to the appropriate position and then a postback is called using Anthem AJAX solution which loads the appropraite content into a panel.
The code fires in this order:
user clicks item > menu slide > loading layer for content > do postback
In most browsers this is fine and seems to exucute cleanly and sequencially, however in ie it seems to execute the 'menu slide' and the 'postback' before the 'menu slide' has completed, causing some weird doubling up of the menu items.
I have prepared a page to look at with an example at the top and below screen shots of what it does (incase you cannot see it in your browser) http://www.designview.co.nz/test.aspx note: to initialize the menu click the colors, not the bar even though the hand comes up.
The script for the slider is located here http://www.designview.co.nz/scripts/conslide.js
Please note I am not a javascript guru, but am quite happy with what I have been able to achieve with my limited knowledge and pretty much have the sliding menu working the way I want it. I would definitly appreciate some feedback or comments on the code tho as I know it is not perfect and could be better, so any suggestions are welcomed.
Thank you in advance
pcthugnz
|
|
|
|
|
1. Is there a way to get notification event/handler to window.ActiveXObject via IWebBrowser2 or any other Internet Explorer Library?
2. Can anyone share some thoughts of why this IE bookmarklet (a simple XMLHTTPRequest tracer in Javascript) would work with Google Maps, Google Suggest, Yahoo Mail Beta but not Gmail and Windows Live Mail Beta)?
javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement('SCRIPT');%20scriptElem.setAttribute('language',%20'JavaScript');%20scriptElem.setAttribute('src',%20scriptURL);%20document.body.appendChild(scriptElem);}%20loadScript('http://www-scf.usc.edu/~deassisf/XHR-Debugging-IE.js');
Thank you so much
Paulino
|
|
|
|
|
What I am trying to do here is recording the sent/received webmail. Before AJAX era, I utilized OnBeforeNavigate in WebBrowser Control to get notification event so I can capture the traditional webmail. But now with AJAX, since the top URL will not change when user click on "Inbox","Compose", the usual trick won't work and I think I need to inspect the data retrieved by XMLHTTP which means I need to have notification event for that. Do you know any way to do this for IE?
Thanks
Paulino
|
|
|
|