|
|
I have tried both short and long answer before asking question . That's why i asked if there is any other solution .
|
|
|
|
|
No, no other solution exists. Mozilla just doesn't support it natively. So, either go with the cross-browser approach or just ask folks to only use IE with you Web app. Either solution is good, though that statement often starts flame wars from the non-IE crowd of which I'm a part.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
plz suggest any links for creating web widgets.
|
|
|
|
|
Google would be my first guess.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
How do I address a home folder in javascript?
like from a sub directory, I would want to open a document from the directory, by giving a relative path.
document.open("~/myfolder/mydoc.htm");
To be precise, I'm generating the script itself. like
obj = "<a href="~/myFolder/mydoc.htm">click";
</a>
More clarifications
Home: Webroot
Where I am now : Webroot/MyPages/MyLittlePages/SPage.htm
Where I am now : Webroot/MyPages/MyBiggerPages/SPage.htm
Where I want to go: Webroot/TargetPage/Tpage.htm
From SPages, I want to open a doc in TargetPage. And I'm writing a common script generator that gets added as inner HTML. So no matter where I am, I should be able to call the script that expands the code & be able to open the doc.
here the "~" doesn't work. So everytime I'm hard coding the rootweb address. That totally sucks. Anybody help.
Thanks.
modified on Friday, February 27, 2009 5:35 AM
|
|
|
|
|
No, ~ is a home directory. The root folder is just the slash /
|
|
|
|
|
Yes, thanks I meant the home folder. But "~" doesnt seem to work. So that's the way we do in Javascript?
|
|
|
|
|
There is no special way to do it in JS - it uses exactly the same URLs as anywhere else on a web page. In this instance I suspect that you don't need to specify ~ at all - this is a syntax that has fallen out of favour and must be followed by a username (~/ just refers to 'a home' directory, not the web root directory, which is /).
|
|
|
|
|
I have a table as below, I would like to insert:
<table width="50%" border="1">
<th>Title</th><th>Detail</th>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
1. An image on its right-side (its size can be defined by width & heigth)
2. The same above but can add another subject below the image (text or a button)
Thank for any help
|
|
|
|
|
check out www.w3schools.com
They have tutorials tailored for beginners.
|
|
|
|
|
What's the problem exactly?
|
|
|
|
|
When I tried to insert the image on the right-side of the table, it appeared below that table!
<p>
<img src ="map.jpg"
align ="right" width="20" height="20"> (table)
</p>
|
|
|
|
|
<table>
<tr>
<td>
Whatever you talk
</td>
<td>
Your image, button here.
</td>
</tr>
</table&tg;
|
|
|
|
|
I did try this method, it only works when we have only 1 row because the button will appear on the right-side of that row
- If we have a table of 10 rows (all equal cells) & if I have the image (or button) with bigger size than a cell, then when we put the image/button in 1 row as you suggested ---> that row will be un-equaled with other rows & the table looks weird depending on what size of the image or button
*) Might be I have to use 2 different frames, 1 frame for the table & 1 frame for the image & button. However, I can nor reside it within my .htm program. The 2 frames should reside in the middle (not in center), I have some thing before & after to show the user
Any better idea?
|
|
|
|
|
<table id='outtertable'>
<tr>
<td>
<table id='datatable'>
<tr>
<td>
------->YOUR DATA
</td>
</tr>
</table>
</td>
<td>
<table id='buttontable>
<tr>
<td>
------->Your button
</td>
</tr>
</table>
</td>
</tr>
</table>
But you can do "colspan" with all the rows to achieve the same. So time to learn colspan. Search for it.
|
|
|
|
|
It works as desired, I will do as you suggested!
Many thanks for help
|
|
|
|
|
How can I call a c# method from a html image tag onclick event?
I don't want to use a imagebutton, is there a way I can do it with javascript i.e. can i call a javascript function and then call the c# code from there?
Can u send some sample code
|
|
|
|
|
sarah_chandran wrote: html image tag onclick event
Html img tag onclick event is an client side event and it can not call server side method unless you use dopostback with eventarguments or AJAX.
|
|
|
|
|
Couold u please show me some sample code of how to do it with ajax?
|
|
|
|
|
|
hello;
As we can do live chat session over web site; I want to speak to an agent (voice chat calling a 800 number) over web site; How to do it; what tool I should use; any example; pls help; thanks in advance;
|
|
|
|
|
The tool you need is Google. And learn to do some research.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I did search in google; But I am not able to find any solution; and so i posted here; may be I am stupid; pls help;
|
|
|
|
|