|
yea it seems to be a likely solution Scott. I think they would be storing the prefered style in the database or something to make this preference saved for future use.
but still some advanced features do make question marks in my mind ??
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Storing the preferred style in a database would be good to provide the same experience anytime the user logs in. The other option would be storing it in a cookie, but that becomes machine specific.
What advanced features are you referring to?
|
|
|
|
|
The advanced features I was talking abt were... well if u must have seen the myYahoo page now and it offers you IFrames (I think) in which it shows u many different modules like horoscope, sports news etc etc and you can customize the modules as well as their placement which is something really nice! but I was wondering how they manage to do all these things.
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Actually, I haven't seen the myYahoo page but I have seen pages similar. The conceptual idea behind those "frames" is the idea of "web parts", first introduced (IIRC) by SharePoint several years ago. There are several different ways to accomplish this, depending on the amount of work you want to do and what technologies you want to use. You should be able to find more information on them either here on CP or on Google.
|
|
|
|
|
Yea Surely I'll look into that; you know right now I'm learning ASP .net and I'm gonna be making my first project just for the sake of learning now. well I did make a project a long time ago in asp.net 1.0 but I've almost forgotten all abt it.
What buzzes me the most is the fact that there are so many things to learn in order to be a good web developer like ASP .NET (or anyother server side language), JavaScript, AJAX, Xml, Web services, HTML, XHTML, XSL, CSS, then come in those designing tools like dreamweaver, frontpage photoshop and bla blah blah...
right now I know things like ADO .NET, XML, XSL , CSS, HTML, XHTML and a few bits and pieces of ASP .NET, photoshop, frontpage and Javascript .
So really thats quite a lot of work u know. and I'm trying to concentrate on ASP .NET and designing pages right now so that I can start doing some work u know.
Wish me luck!!
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
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 )
|
|
|
|