|
I know a smart guy called Google, he thinks your answer is this[^]
|
|
|
|
|
Hi,
I have a frameset based site I am modifying for a friend.
In one of the frames, in an block, I have an onClick handler assigned like so :
onClick= "window.parent.forumButtonClicked();"
In IE7/8 this works fine : I click on the image in the frame and it calls the function defined in the "master" page (index.htm).
But in Safari Beta 4, this does work. I have debugging enabled in Safari, but get no error message.
Ideas ? Is using "window.parent" not strictly W3c compliant here ?
I assume I'm going to have use some other way of referring to the enclosing master page ?
thanks !
Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
I am creating my own rich text editor, just can't use the free ones out there.
Having trouble to insert the InsertHorizontal Rule in the text area. Please help me!!
thanks in advance!
lin
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <br />
<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<html><br />
<head><br />
<LINK REL=StyleSheet HREF='TestDrop.css' TYPE='text/css'><br />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><br />
<script language='text/javascript'src='toggle.js'></script><br />
<title>Testing</title><br />
</head><br />
<body><br />
<div><br />
<a id="lame" href="#" ><img id="test" src="images/tbl_expand.gif" onclick="beg()" /> </a><br />
</div><br />
</body><br />
</html>
This is the html file.
function beg()<br />
{<br />
var toggle ='on'<br />
var obj = document.getElementById('test')<br />
<br />
EC();<br />
<br />
<br />
}<br />
<br />
function showHide(id) <br />
{<br />
var e = document.getElementById(id);<br />
if(e.style.display != 'none') <br />
{<br />
e.style.display = 'none';<br />
} <br />
else <br />
{<br />
e.style.display = '';<br />
}<br />
}<br />
function EC()<br />
{<br />
if(toggle =='on')<br />
{ <br />
obj.src = "images/tbl_collapse.gif";<br />
toggle = 'off' ;<br />
}<br />
else<br />
{<br />
obj.src= "images/tbl_expand.gif";<br />
toogle = 'on';<br />
}<br />
}<br />
<br />
<br />
<br />
And this is the javascript file. What I need right now is when you click on the image. It toggles to the next image. Later on will be a drop down menu, something like show/hide. An example of this is on the website http://blog.movalog.com/a/javascript-toggle-visibility/[^
|
|
|
|
|
one other thing is that is has to be on the same page so its not going from page to page.
|
|
|
|
|
Try this:
function beg()
{
var obj = document.getElementById('test')
if(obj.src == "images/tbl_expand.gif")
{
obj.src = "images/tbl_collapse.gif";
}
else
{
obj.src = "images/tbl_expand.gif";
}
}
Wout Louwers
|
|
|
|
|
|
hi,
please tell me how to create line graphs by using html code.please tell me the code or please give me the information regarding this.......
modified on Tuesday, May 12, 2009 5:01 AM
|
|
|
|
|
Simple, you cannot create a line graph in pure html. You need to get a book on web development and atart at page 1....
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
thank you is it possible to create linegraphs by using html with jsp please suggess me regarding this and relevent sites and relvent code please...............
thank you once again
|
|
|
|
|
Please, you need to get a book on web development and start at page 1. You don't seem to know what html is or how it works, never mind the finer points of web development. I don't think you even understand what you are asking. If you are being paid for this work, come clean and say you lied about your ability, otherwise go and buy a book.
LalithaSJ wrote: relvent code please
If you want code writing go to rentacoder.com or similar. Now, go buy a book............
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi all,
This is senthil. I got a project(with codes and design) from my client to upgrade.
The project is mainly developed in vb.net (from the design pages i got this information).
In the project code-behind files are separated files.
But the project is not having these code-behind files. And the pages is also running without any failure in the server (with absence of these code-behind files). For upgrade purpose i opened the pages through vb.net IDE, But the code-behind files are not founded.
How this is possible.
Is anything i need to know.
I need these help urgently....
Note* - I didnt convert/migrate the project.
And the developed .Net IDE is VS 2005.
Thanks in advance
Senthil.S
A Software Engineer
|
|
|
|
|
Did you check whether the inline code has been written inside the aspx itself or not?
Either you love IT or leave IT...
|
|
|
|
|
Thanks for your reply.
yes I Checked, But the vb.net code is writen in code behind file. Not in inline code.
Senthil.S
A Software Engineer
|
|
|
|
|
Try to find the code-behind file specified in the page directive. If the page is using any code-behind then it must have been specified over there.
Either you love IT or leave IT...
|
|
|
|
|
I am printing a webpage using java script. While printing it prints an empty page following the content page... Let me know to avoid the empty page....
Thanks....!
|
|
|
|
|
To execute a simple NVP Operation to paypal such as:
<br />
https:
&cmd=_express-checkout&token=tokenValue<br />
&AMT=amount<br />
&CURRENCYCODE=currencyID<br />
&RETURNURL=return_url<br />
&CANCELURL=cancel_url<br />
Should I initiate an AJAX request? It is stated in REF doc below that:
<br />
Executing NVP API Operations<br />
You execute an PayPal NVP API operation by submitting an HTTP POST request to a PayPal<br />
API server.<br />
...<br />
Interpret the Response<br />
PayPal processes your request and posts back a reponse in NVP format. Add code to your web<br />
application to do the following tasks:<br />
1. Receive the HTTP post response, and extract the NVP string.<br />
2. URL-decode the parameter values as described in "URL-Encoding" on page 14.<br />
3. Take appropriate action for successful and failed reponses.<br />
For instance:
<br />
REF: http:
<br />
<html><br />
<body><br />
<script type="text/javascript"><br />
function SubmitOrderToPaypal()<br />
{<br />
var xmlhttp;<br />
var strUrl;<br />
<br />
strCmd = "https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=tokenValue&AMT=amount<br />
&CURRENCYCODE=currencyID&RETURNURL=return_url&CANCELURL=cancel_url";<br />
<br />
if (window.XMLHttpRequest)<br />
{<br />
xmlhttp=new XMLHttpRequest();<br />
}<br />
else if (window.ActiveXObject)<br />
{<br />
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");<br />
}<br />
else<br />
{<br />
alert("Your browser does not support XMLHTTP!");<br />
}<br />
xmlhttp.onreadystatechange=function()<br />
{<br />
if(xmlhttp.readyState==4)<br />
{<br />
document.myForm.time.value=xmlhttp.responseText;<br />
}<br />
}<br />
xmlhttp.open("POST",strURL,true);<br />
xmlhttp.onreadystatechange=handleResponse;<br />
xmlhttp.send(null);<br />
}<br />
<br />
function handleResponse()<br />
{<br />
if (xmlhttp.readyState==4)<br />
{<br />
document.getElementById("txtPaypalResponse").innerHTML=xmlhttp.responseText;<br />
}<br />
}<br />
</script><br />
<br />
<form name="myForm"><br />
<input type="image" name="submit" onclick="SubmitOrderToPaypal();" border="0"<br />
src="https://www.paypal.com/en_US/i/btn/btn_buynow_**.gif"<br />
alt="PayPal - The safer, easier way to pay online"><br />
</form><br />
</body><br />
</html><br />
And now, how can I retrieve response from PayPal?
Many thanks
REF:
Web Site Pro Integration Guide
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_WPP_IntegrationGuide.pdf
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_documentation[^]
dev
modified on Monday, May 11, 2009 10:53 PM
|
|
|
|
|
I am building a forum. I first need to create a use case diagram of the whole scenario. The processes between the actors i.e. ADMIN, USER, SYSTEM.
A forum should have pretty much the usual features in it. What i am looking for is a SRS document or Use case Diagram of any website preferably a forum so i could get the general idea of the problem......any help would be appreciated.
|
|
|
|
|
Or, to put it another way, yuo want someone to do your course work for you. I suggest you try and do it first, then get a peer review just like in the real world.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
nice excuse for not helping !
|
|
|
|
|
In my book that was not an excuse, just a statement of fact.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
hi,
i am doing customer details in asp.net 2.0 with sql server.
i have using customer name,address,city,mail id..
now i did saved all things.
but when i retrieve particular customer in textbox's.
address will printed continuously in tetxbox.
so i need to view line by line .
example,
12,NH road,
PSr Layout,
Chennai.
tis address view same format in textbox.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Don't cross post, its rude.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi,
I have a list of products, and most of the products has an image. I am writing the results to a table with 2 cells. The image goes in the left cell, and the product name and short description goes in the right cell.
I have the full path of the image, now I want to resize it to smaller size, and then put it in the left cell. I tried Googling it but they resize and image and just display the image back to the browser. I want to put the image in the table's cell.
Can anyone help?
Thanks
|
|
|
|
|
.NET Enthusiast wrote: but they resize and image and just display the image back to the browser
So just point it to the cell of your table.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|