|
try the following link (javascript code)
<a href="http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm">http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm</a>[<a href="http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm" target="_blank" title="New Window">^</a>]
|
|
|
|
|
Great Link!!, Thanks a lot
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Actually i am working on a distributed web crawler and currently in a url normalization phase i don't get one thing and that is what is the difference between http://www.example.com/dir and http://www.example.com/dir/ are these two paths are not identical or they are different, if different then how?
|
|
|
|
|
The difference is that an url ending with a slash is known to be a folder.
When you use the first url in a request, it goes like:
browser: "Gimme the file http://www.example.com/dir"
server: "Can't do that. That's not a file, that's a folder"
browser: "Ok, gimme the default file in http://www.example.com/dir/"
server: "Here you go"
For the second url, it't just:
browser: "Gimme the default file in http://www.example.com/dir/"
server: "Here you go"
---
single minded; short sighted; long gone;
|
|
|
|
|
So are you saying that i should normalize the http://www.example.com/dir to http://www.example.com/dir/ means i must add a trailing slash to it.
|
|
|
|
|
It works either way, but if you know that it's a folder, there is no reason to write the url without the trailing slash.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
Can you tell me if how can I check a null Imagebutton? How do we know if there is no image assign in Imagebutton?
Thanks
hifiger2004
|
|
|
|
|
Not being funny but you have even tried to solve this yourself if you had it would have taken 10 minutes.
I suggest you look at this:
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton_members.aspx
and set this www.msdn.com in you favourites it will save you and us a lot of time
Dan
|
|
|
|
|
Hi Dan,
I suppose to check if the image if it will display or not. And if won't display the image it will be changed programmatically into an image - blank.jpg
Please see my source code below.
ImageButton1.ImageUrl = "~/Images/Item_Thumbs/image1.jpg"
ImageButton2.ImageUrl = "~/Images/Item_Thumbs/image2.jpg"
ImageButton3.ImageUrl = "~/Images/Item_Thumbs/image3.jpg"
If ImageButton1.ImageUrl Is Nothing or String.IsNullOrEmpty(ImageButton1.ImageUrl) Then
ImageButton1.ImageUrl = "~/Images/Item_Thumbs/blank.jpg"
End If
If ImageButton2.ImageUrl Is Nothing or String.IsNullOrEmpty(ImageButton2.ImageUrl) Then
ImageButton2.ImageUrl = "~/Images/Item_Thumbs/blank.jpg"
End If
If ImageButton3.ImageUrl Is Nothing or String.IsNullOrEmpty(ImageButton3.ImageUrl) Then
ImageButton3.ImageUrl = "~/Images/Item_Thumbs/blank.jpg"
End If
hifiger2004
|
|
|
|
|
Hey
your logic seems fine as does how you are implementing it. The one thing I would consider is rather than loading blank.jpg I would just set the appearance of of the image button to your blank colour as the code will not have an image and it will not rely on an image being there. If the image isnt there it will display funny (possibly) so is not terrible but wont look all that professional.
Dan
|
|
|
|
|
But how can I do that?
I mean, it can be set to visible = false, but at first is how can I detect if the ImageUrl is not showing the image.
If there's definite code or way on checking the imagebutton.imageurl if the image is not showing then that would be fine.
It's just like doing a code for example:
If ImageButton.ImageUrl = Image not showing then
ImageButton.Visible = false
End If
Something like that. The only thing is how to check the image if it shows
Thank you Dan for sharing your ideas
hifiger2004
|
|
|
|
|
Ahhh I see. Well if the imagebutton is not showing an image it means that it hasnt found the image or cant read it etc so what you would have to do is check the image file exists. It sounds to me like you are going to a lot of trouble to make sure an image button contains an image - just make sure that the image url always points to a valid image rather than doing all this checking or before each load check the image exists if it doesnt then hide the button.
Dan
|
|
|
|
|
Thank you for the Idea
hifiger2004
|
|
|
|
|
Just downloaded the Apple Safari web browser and playing around. Two things I am bit stuck. If somebody could help out, it would be great:
1) Any Javascript Debuggers like Venkman for Safari? Neither does Visual Studio integrate nor Venkman for FireFox is able to understand Safari integration!!
2) And BTW, why is the Proxy: Change Settings always disabled and is not available for configuration?
|
|
|
|
|
Try Web Inspector[^].
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
Thank you, Shog.
Let me give it a try sometime tomorrow.
|
|
|
|
|
Hy,
I'm trying to develop a new plugin to Mozilla (etc.) browser, but before writing a single line of code, I've encountered a problem.
Ok, I know that to develop for Mozilla, I should do the coding under GECKO SDK and stuff, but I know nothing about how should I set up de enviroment to work with VS2005.
I've already read quite a lot of google, even mozilla's developer sites, but I'm confused.
Could anyone please provide me a step-by-step tutorial about setting up Gecko, XUL-runner - if needed - and any other things I might use.
Ps: Sorry if my question is offtopic, but I haven't found the proper one.
Thanks in advance :
Collapo
|
|
|
|
|
In my site I have pages with maximum of 7 query strings . I have made a sitemap of the site including all these urls and submited them to google. and google verified them. I don't know why google does'nt read all the urls specially those that are long in guery strings. Do u know why ? How can I solve this ?
|
|
|
|
|
I am doing an application in which i want to validate a textfield using javascript..
The phone text field in application should acccept only numerics.. and i wrote a javascript for that..
I wanna include the space character(hope its ascii value is 32) also in the script ..please help me...
the code i did is ...as follows...
function checkIt(event)
{
var charCode = (event.which) ? event.which : event.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57))
{
alert("Please make sure entries are numbers only.");
return false;
}
return true;
}
i call this function onkeypress event of the phone text field...
i want to include space key and enter key to the script function ...
Thanks in advance...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
sajan ss wrote: if (charCode > 31 && (charCode < 48 || charCode > 57))
Try to think this code through, for a value of 32. Both tests actually succeed, and so you'll get your alert ( what a pain, I'd suggest removing it ).
Try this:
function checkIt(event)
{
var charCode = (event.which) ? event.which : event.keyCode;
return (charCode == 32 || charCode == 13 || (charCode >= 48 && charCode <= 57));
}
I assume if you want the alert still, you can rework this code accordingly.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
This code works fine...but when i am entering some text in the desired textbox and hitting enter then the page posts itself and return error...
You checked the value of enter key in the function then how can this go wrong...
when i press enter key the control should be in the same textbox...
but it is not working ..other key works fine...
thanks for the reply...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
OK, you didn't say that.
You need to make sure there's no default button, so that enter does not cause postback. Your code also is not going to 'work fine'. It will work fine so long as you don't press any other key that has a value between 32 and 46, or whatever it was. The implimentation is plainly flawed, even if you've failed to notice.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks ....Sorry for not saying that then...
How can I remove the Default add button property....
so that even if i press enter it should be in the text field....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Here[^]
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
please i need to upload image to my website. so it will be an option that allow users to upload images to the web page
thanks in advance
bachir
|
|
|
|