|
Jeremy Falcon wrote:
Coockies are extremely finicky though and can quicky bring you into a lot of compatibility issues. Be weary of the cookie!
How so...?
I've never experienced compatibility problems with NS or IE using my cookie object. Website persistance
Mind you I haven't really tested hardcore under NS, but who does...with only 10% of the browser market.
I proudly announce NS sux...and suggest all my clients stick w/ IE
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I am looking for a script or component I can on a website I am developing that would allow users of the site to enter content in a textbox, such as I am doing now, and then be able to apply formatting (with WYSIWYG support would be nice) to the text or parts of the text without having to know the required HTML.
For example, on this site if I want to make this word bold, I have to wrap the word bold with 'b' and '/b'. I would like to be able to highlight the word and click bold.
Also, a spell checker would be nice, too.
-DarrenS
|
|
|
|
|
|
Give me your email and I will post a exm to you,a html+DHTML exm
|
|
|
|
|
I need to hide a table and to show it after the page has loaded at a later moment.
Do you know how could i do it?
rechi
|
|
|
|
|
Bogdan Rechi wrote:
I need to hide a table and to show it after the page has loaded at a later moment.
Ok I won't write all your code for you, but here is the general idea.
First you use CSS to hide the TABLE. You will need to do it inline (which is bad, but about your only solution) so that the TABLE is hidden and we don't have to wait for the CSS file to load. Use style="display: none" or style="visibility: hidden" in the TABLEs opening tag. e.g. <table style="display: none"> .
Then you need to give your TABLE a unique ID so that we can reference it. e.g. <table id="tblHiddenTable"> .
Then in your BODY tag you need an ONLOAD event which will set the DISPLAY attribute of the TABLE to inline , this will display the TABLE once the page is loaded. e.g. <body onload="document.all.tblHiddenTable.style.display = 'inline'">
That shows the table once the page is loaded. If you want to display the TABLE even after that a specific time, say 5 seconds later, then you need to use onload="setInterval ('next_frame(document.all.tblHiddenTable.style.display = 'inline')', 5000);" . setInterval basically allows you to fire off a function after a certain number of milliseconds have elapsed.
hope that helps, if not write back.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
hi adding to the reply you got to fire of ur event you can use the ie_timer control.its prety easy to use.Write the code to make your table visible in the ie_timer() event ..
Regards
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Hi Folks..
Im using multiple forms ie form1 and form2 in my web page(html page) and each of the form submits its values to seperate asp pages.Now after the asp pages process the values i have to comeback top this webpage.
So i use response.redirect and sometimes server.transfer from the asp page to come back the html page.and my question is how do
i avoid the page from being refreshed. i mean my webpage has some pictures(say pic1) in them and they all belong to form1 and they get changed when the user changes it to say pic2.
But now its refreshed becos form2 was submitted and comes back to the html page then my form1 has picture1 while i want it to have picture2..
Do i have to use of ispostback or some propery like that to make the page understand that it has to kind of maintain its state.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Try this in your ASP page:
<%
... ...
'some ASP code
... ...
%>
|
|
|
|
|
hi
any 1 have idea how too use listview or any such control
in asp....
looking forwar dfor reply
tc
|
|
|
|
|
I want to set my page Automatically as the homepage without prompting the user ....i mean when the page is loaded it should be set as the homepage(automatically)
|
|
|
|
|
That's very nasty, and the sort of thing that's likely to really annoy users.
There's some javascript here that gives a manual link to set a page as the homepage. You could edit the script to automate that.
However, if I found a website had changed my homepage to itself without my knowledge or permission, I'd change my homepage back, and make a mental note to never visit that site again
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
When I create a standard HTML document with or without a Cascade Style Sheet all links are underlined.
When I visit Code Project links do not get their underline until I place my cursor over the top.
Is this caused by ASP, JavaScript or something else completely?
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
|
Nishant S wrote:
This is a snip from CP style sheet. It's self explanatory
Thanks for the answer Nish.
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
Michael Martin wrote:
Is this caused by ASP, JavaScript or something else completely?
Nish's answer is sufficient but I thought I might be permitted to elaborate a bit. (also if you want to push your CSS knowledge then this stuff is important)
It is all done using CSS and Selectors (W3C link). Selectors are so, so important to CSS. And you are using them even if you don't know it. p.michaelsheading{font-size: xx-large} is using a class selector. (applied by writing <p class="michaelsheading">Michael and CSS</p> )
Another selector is p#michaelsheading{font-size: xx-large} and that is basically an ID selector. (applied by writing <p id="michaelsheading">Michael and CSS</p> )
Then you get what Nish showed you were :Hover , :Link etc. are another form of selector.
The nice thing, and the point of this post, is that you can combine them. So if you want two links on your page but with different styles you can go a.menu:hover{color: #ff9900} for the one link and a.content:hover{color: #99ff00} for the other link.
CSS is so cool
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
Nish's answer is sufficient but I thought I might be permitted to elaborate a bit. (also if you want to push your CSS knowledge then this stuff is important)
No problems at all, thanks for showing enough interest to help so much.
To be truthful I haven't been playing with anything technical much for the past couple of weeks. Grunt work, stress and interview/job hunting makes it hard to get motivated. I am trying to snap out of this, but I am living with in-laws and the only place (and I mean only) to put my computer is on the dining room table. This makes it hard to concentrate.
Anyway on to my question. I am currently using a single entry for each HTML type (is this the correct terminology?) h1, h2, p etc. like the following.
p { font-size:10pt; }
I am not interested in using class and ID selectors at the moment (though I have a rudimentary knowledge of them), as I am reducing my HTML file size to the absolute minimum and I don't need them yet.
What I want to know is, can I add Hover, Link etc into the body (??) of say p {} or do I have to add a seperate p.Hover {}, p.Link{} etc.?
Also is there a help file for CSS and HTML I can download to use offline? I found one once but they were circa 1999 vintage which I thought a bit old.
Should get notification on that job with the video conferencee interview tomorrow, 2 days later than they originally said. Hoping to get this so I can get back to having a life.
Michael Martin
Australia
mjm68@tpg.com.au
"I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end."
- Chris Maunder 15/07/2002
|
|
|
|
|
hi
any 1 have idea how can i open document
like .doc,pdf,.jpg etc form the ASP page.
looking forwrd for reply
take care
|
|
|
|
|
just put in a html link, exactly as you would to another .html or .asp page
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
When I try to update my databae using the update on the datagrid the original values, not the modified ones are passed. Any ideas? Thanks.(No, the function in its current state does not function)
public void UpdateGrid(object sender, DataGridCommandEventArgs e)
{
UpdateVendor.Connection = Global.sqlConnection;
UpdateVendor.Parameters[0].Value = dgVendors.DataKeys[(int)e.Item.ItemIndex];
TextBox Contact = (TextBox)e.Item.Cells[3].Controls[0];
TextBox Address = (TextBox)e.Item.Cells[4].Controls[0];
TextBox Phone = (TextBox)e.Item.Cells[5].Controls[0];
TextBox Fax = (TextBox)e.Item.Cells[6].Controls[0];
UpdateVendor.ExecuteNonQuery();
dgVendors.EditItemIndex = -1;
dgVendors.DataBind();
}
Steve
Not all who wander are lost...
|
|
|
|
|
I'm assuming TextBox Contact, etc. contain the updated values and UpdateVendor is your SqlCommand. Where are you assigning the contact, address, phone and fax to SqlCommand parameters?
|
|
|
|
|
here is the exact code.
public void UpdateGrid(object sender, DataGridCommandEventArgs e)
{
UpdateVendor.Connection = Global.sqlConnection;
UpdateVendor.Parameters[0].Value = dgVendors.DataKeys[(int).Item.ItemIndex];
TextBox Contact = (TextBox)e.Item.Cells[3].Controls[0];
TextBox Address = (TextBox)e.Item.Cells[4].Controls[0];
TextBox Phone = (TextBox)e.Item.Cells[5].Controls[0];
TextBox Fax = (TextBox)e.Item.Cells[6].Controls[0];
UpdateVendor.Parameters[1].Value = Contact.Text;
UpdateVendor.Parameters[2].Value = Address.Text;
UpdateVendor.Parameters[3].Value = Phone.Text;
UpdateVendor.Parameters[4].Value = Fax.Text;
UpdateVendor.ExecuteNonQuery();
dgVendors.EditItemIndex = -1;
dgVendors.DataBind();
}
Steve
Not all who wander are lost...
|
|
|
|
|
|
I've done some ASP a while back and was wondering what is, in a nutshell, new with ASP .NET? Big difference or just some small design upgrades?
|
|
|
|
|
big, huge, massive.
asp.net is leaps ahead of not only asp, but every other web framework i've ever seen.
they've wrapped a very innovative webforms framework around the stateless web. It's amazing stuff.
|
|
|
|