|
.NET Enthusiast wrote: This was really a waste of an answer
Not really.
.NET Enthusiast wrote: DIV tags
That is html.
.NET Enthusiast wrote: not tables
I never mentioned tables, where did you get that from?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Why is this important to you ? What is the benefit of using DIV rather than table ?? If it is the performance issue I dont think this will have much effect.
|
|
|
|
|
CSS Zen Garden[^] is nice if you want to write good css code.
My webpage[^] is made using css.
---
single minded; short sighted; long gone;
|
|
|
|
|
Here is another web site: http://www.alistapart.com/[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
I just wanted to share an observation. Correct me if I am wrong. Most of the web-based HTML Editors be it the Yahoo Mail beta, Windows Live Compose Editor etc. when composing HTML messages and when we embolden the text using 'B' toolbar icon (CP 'B' icon seems to stand out ), in the generated HTML, I see they use STRONG tag instead of B tag.
Here are my queries:
1) Are there any visible difference between STRONG and B?
2) I feel that in most of the cases B should hold good at least to compress the page size. Assuming there are twenty-five such emboldened text, we have 17 character sets for every bold operation like
< > STRONG repeating twice (making 16) and a closing / in the second tag.
3) I accept that a few people might reply giving GZip Encoding of the response stream. But on the forefront, if we could use a cheaper way than a costly way, it is more elegant right?
|
|
|
|
|
<b> or <strong>, and <i> or <em> (for emphasis)
No, there is no visible difference on the page. The only reason for using the latter versions os for the benefit of screen readers, which may use a different inflection when coming across them. The idea is to use the former versions if all you want is a visual effect, and the latter if you want to make a contextual one.
It's just the accessibility police getting trigger happy again.
Fred
|
|
|
|
|
Could someone tell me why the onfocus and onblur events only fire once. For example, using the code below, when you bring IE to the foreground the onfocus event fires and when you click on another windows (outside of that instance of IE) the onblur event fires, very good. But I can not get it to fire again, unless I reload the code. I expected these events to keep firing for each time the browser gets and loses focus. Is there something I'm missing or is that just a limitation of IE v7?
Here is a sample test:
function lostfocus()
{
document.write("lostfocus\n")
}
function gotfocus()
{
document.write("gotfocus\n")
}
Thanks...
Rick
|
|
|
|
|
here's a better example
<html>
<head>
<script type="text/javascript">
function lostfocus()
{
document.getElementById("displayFocus").innerHTML = "lostfocus\n";
}
function gotfocus()
{
document.getElementById("displayFocus").innerHTML = "gotfocus\n";
}
</script>
</head>
<body onfocus="gotfocus()" onblur="lostfocus()">
</body>
<div id="displayFocus"></div>
</html>
your problem was your use of document.write
|
|
|
|
|
Hi Dear All,
Can anybody help me? I am new to the web services in .net. So requesting for the free downloadable e-book for the webservices. Or whitepapres or any material that demonstrates the all the stuffs of the Web Services, from strach..
Thanks!!!
Sushil
Warm Regards
Sushilkumar
|
|
|
|
|
Hello Coders;
i wrote a xml web service. i want to use in html. i look a lot of websites i didn't find any answers i should write to asp.net forums but i can't reset my password anyway ...
namespace is nesim
class is members
and asmx file is members.asmx
there is Register method which takes some string values, output parameters and returns a bool variable.
i want to call this on a click of link ... i did like that;
function signup()
{
var username = document.getElementById("txtusername");
....
....
....
var succed = nesim.members.Register (username.value, ..... )
if ( succed )
{
div_info.innerHTML = " Your registration is succesfull ... ";
}
}
..........
..........
Sign Up
i got members or register not definited error. As last i did do ...i add a script manager which comes with ajax control kit.
<aspcriptmanager id="sc1" runat="server">
<services>
<aspervicereference path="Members.asmx">
<aspcriptmanager>
do you have an idea ? or is there any another way ? thank you very much ...
®esult ++ @@i-developer
|
|
|
|
|
Hi, Please help me, i want to display stock status on the main page (New Product section) with price condition. I have two conditions
1- if QTY is ==0 than display [b]"Out of Stock"[/b] and if QTY>0 than display [b]"In Stock"[/b]
2- if Price is ==0 than display [b] "Call 4 Price" and if price is >0 than display [b]"Product Price"[/b].
Now I have writing a code, which is not working properly can anybody help out. here is my code:
<br />
if($new_products['products_quantity'] == 0)
{ <br />
$info_box_contents[$row][$col] = array('align' => 'center',<br />
'params' => 'class="smallText" width="33%" valign="top"',<br />
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'.TEXT_PRODCUT_OUT_OF_STOCK.'('. $new_products['products_quantity'].')</br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));<br />
<br />
}<br />
else if($new_products['products_price'] == 0)
{ <br />
$info_box_contents[$row][$col] = array('align' => 'center',<br />
'params' => 'class="smallText" width="33%" valign="top"',<br />
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'. TEXT_PRODUCT_IN_STOCK.'('.$new_products['products_quantity'].')<br>'.TEXT_CALL_FOR_PRICE);
<br />
}<br />
else<br />
{<br />
$info_box_contents[$row][$col] = array('align' => 'center',<br />
'params' => 'class="smallText" width="33%" valign="top"',<br />
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'.TEXT_PRODUCT_IN_STOCK .'('.$new_products['products_quantity'].')</br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));<br />
}<br />
Please email at waqasb4all@yahoo.com
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.buybestpc.com
www.iriverpakistan.com
|
|
|
|
|
Hello every one
I have one strange problem.
My site work very well in IE & firefox
But in Safari public beta 3 browser it seem to me that the button click event is not work first time. It just reload the page and do nothing.
I check my code but it didn't show any error.
I don't understand what is the problem
Can any one tell me what is the problem
Thanks in Advance.
|
|
|
|
|
Start the page in debug mode and set breakpoints to see what happens when the page reloads. Examine the contents of the Request.Form collection to see if the name of the button exists as an item in the form data.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi, thanks for reply,
I already debug page so many time amd it work fine,
Even the event of that button is also fire and all the code working fine.
It just show nothing and after clicking againg page working fine. i m not understand wat is the problem here.
Also i forgot to tell that i also use ajax.net 1.0 framwork.
|
|
|
|
|
What is it supposed to show?
---
single minded; short sighted; long gone;
|
|
|
|
|
well when the button is click it show data on table and display grid data.
But at first time when i click it doesnt display any thing and when i click it next time it display perfact.
|
|
|
|
|
I am also facing this problem in my project.
I have no clue why its happening with safari only. Although i am using MS Ajax in my pages
but problem persists even after i remove the ajax.
Will post the solution here as soon as i find it.
Best of luck
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
I am doing something that I thought was very simple, but apparently it is not.
I have 10 different ads, name xxx1.htm, xxx2.htm, etc...
My .asp page creates a random number, this part is working...
but I want to pass that number into an include file statement
is this possible?
I have tried all kinds of different ways for the last two hours, I am stumped.
|
|
|
|
|
No, that is not possible. You can't use code to change the include, as the include is done before the code is executed.
Use the FileSystemObject object to read the file and Response.Write the contents to the page.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Guys,
I haven't tried working trusted IP in my ASP.Net project. Is this possible?
I would like to let some of the users have access in one of my aspx pages by filtering the IP.
What is/are the configuration needed in my web server and in one of my aspx pages?
Thanks in advance
hifiger2004
|
|
|
|
|
Sure you can.
If you are using IIS
1) Go to the IIS
2) Select and do right click on the file
3) Select properties.
4) Go to file security Tab
6) In that the second group : Ip address and domain name restriction.
7) Click Edit
8) Click add and add the ip address you want to deny/grant access.
Hope this helps
laddie
|
|
|
|
|
Hello laddie,
I followed the steps you shared to me, but here in my machine the "IP address and domain name restrictions" button is disabled.
And as of this moment I am only using a workstation (Not Server) for testing before configuring my file at the web server.
But why is it, the button here is disabled. And my user type is "Administrator"
I can't test until I can get into the "IP address and domain name restrictions"
What do you think is the problem?
hifiger2004
|
|
|
|
|
That is strange?. Which OS does your WS run ?.Is your account part of any domain ?
|
|
|
|
|
One of the workstationss that i tested here is part of the domain. And the other pc is not part of the domain. Both PCs here has Administrator privilege. And both are Windows XP.
I was puzzled also if why does the button is disabled.
hifiger2004
|
|
|
|
|
Why not try reinstalling the IIS
|
|
|
|