the Flash object disables the onClick event of <a></a> tag when it's placed beteen the tags
Hello everybody,
I have problem when I put flash object between the <a></a> tag, the problem is that all the events of the <a> tag work fine except onClick, and the flash also works fine. I need the onClick event to open new page when user click on the flash view.
the code looks like this:
----------------------------------------------------
<a id="" onclick="doSomething" ...>
<object>
<param>
<param>
<param> .....
<embed></embed>
<object>
</a>
&nb...
How to strip a string of <html>, ,</html>, <body>, </body>, <form ... >, </form> tags?
I have stream which is the HTML input of a page. Now I want to use only that part of this page, that is within <form .....> and </form> tags, and excluding these tags.How would I go about stripping <html>, ,</html>, <body>, </body>, <form ... >, </form>, <head> and </head> tags? I have to make sure that <head ...javascript..> and its corresponding </head> tags are not stripped in this process.sun21170
Wait... you said you wanted to strip the head tags, and you're also saying you need to NOT strip the ...
Adding run-time created <li></li> tags inbetween <ul>/ul> tags
I want to create a custom control which will create a unordered list and fill it with list items of which will be created at run-time. Currently I am using the following logic:
At my Default.aspx page:<ai:ul_adder ID="ul_adder1" ListItemString="Page1 1,sf1.aspx,image/edit.gif; Page 2,sf2.aspx,image/colaps.gif" runat="server"/>and at the ul_adder.ascx file 1 public string ListItemString
2 {
3 set
4 {
5 string[] itemlist = value.Split(';');
6
7 for (int i = 0; i < itemlist.Length; i++)
8 ...
Bug rendering <p> tags around <pre> or <code> tagsName: Tim Robinson
Email: tcr1272atgmaildotcom
Product: Firefox
Summary: Bug rendering <p> tags around <pre> or <code> tags
Comments:
Two Examples below, both render the <p> tags differently and incorrectly.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<p>
<pre>
<div>
my text
</div>
</pre>
<p>
<body>
<html>
<!DOCTYP...
Setting <object><param> tag dynamically
I've got an ASP.NET application with an embedded Windows Forms control (similar to the old ActiveX controls). Is there a way to set a <param> tag value dynamically? I tried a few things like...
<param name="DocID" value='<%=DocID() %>' />
and
<param name="DocID" value='<%# DocID() %>' />
and
<param name="DocID" value='<%# Request.QueryString("DocId") %>' />
without any luck.
Anyone have any ideas?
Thanks, Alex
<param name="DocID" v...
Inline tags...<%=%>, <%# %>, <%$ %> ....etc...
I come from a classic ASP background, so I know what <%= [string] %> means...but what about:
<%# expression %>
and
<%$ expression %>
---------------
I've seen <%# expression %> used mainly in databinding (<%# Bind("employeename") %>) for a TemplateField but am not sure exactly what it means (though I know what it does). I would think that <%= and <%# are synonymous but it seems they are not.
<%$ expression %> I've only seen in an SqlDataSource when setting the ConnectionString attribute to: <%$ ConnectionStri...
Lists in .net
Like a good AKA accessible app building developer, my application's
navbar is controlled with CSS and using <ul> and <li>
I just have the code in the HTML display and it works fine when
everything should be visible, however, I need to restrict some users
from viewing certain navbar links based on their security levels.
How do I hide the list items that need to be hidden?
TIA
hello!
give them ids and runat="server" attribute. then in code behind set the Visible property to false.
orzeh
code less, think more!
Okay, I tried putting the link as a link bu...
Inserting <Object> before <form> tag when rendering control
I have an ActiveX object that must be delcared outside the default <form> tag of my web control. In other words, when the control renders and writes out the <form element>, I need to place an object tag BEFORE "<form>" is written.
What happens now:
<form VIEWSTATE= " ... " >
<object> objectstuff </object>
</form>
what I need is:
<object>objectstuff</object>
<form VIEWSTATE= " ... " ></form>
I have tried the RegisterClientScriptBlock method on a whim, but it places ...
How to remove <p> and <b> and <i> tags
Hi,
I have some text in the database which has Html tags. I want that when I display the data the tags are removed.HighOnCodingWanna get high!
You might consider called Server.HtmlEncode(data) on the rows to convert the html to characters that will be displayed in the browser.--Brian DesmondWindows Server MVP - Directory Serviceshttp://www.briandesmond.com
Hi,
Thanks for the Quick reply. Well now its displaying something like this:
" <P><P> <i><P>if( dr.Read())<P><P>{<P&am...
superreview requested: [Bug 238989] whitespace after a </b> tag is ignored when enclosed inside <fieldset></fieldset> tags : [Attachment 145302] This should fix itBoris Zbarsky <bzbarsky@mit.edu> has asked Peter Van der Beken
<peterv@propagandism.org> for superreview:
Bug 238989: whitespace after a </b> tag is ignored when enclosed inside
<fieldset></fieldset> tags
http://bugzilla.mozilla.org/show_bug.cgi?id=238989
Attachment 145302: This should fix it
http://bugzilla.mozilla.org/attachment.cgi?id=145302&action=edit
------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu>
So the problem here was that <fieldset> was marked as a tag which is allowed to
discard
all direct child whitespace...
superreview granted: [Bug 238989] whitespace after a </b> tag is ignored when enclosed inside <fieldset></fieldset> tags : [Attachment 145302] This should fix itPeter Van der Beken <peterv@propagandism.org> has granted Boris Zbarsky
<bzbarsky@mit.edu>'s request for superreview:
Bug 238989: whitespace after a </b> tag is ignored when enclosed inside
<fieldset></fieldset> tags
http://bugzilla.mozilla.org/show_bug.cgi?id=238989
Attachment 145302: This should fix it
http://bugzilla.mozilla.org/attachment.cgi?id=145302&action=edit
------- Additional Comments from Peter Van der Beken <peterv@propagandism.org>
Fine by me, although I don't really understand why we'd want kOmitWS at all.
...
<<<< Caling sever side function inside Javascript function >>>
i wont to call server side function inside a javascript functionex:-.cs file protected void add(){//................................ } .aspx file <script>function ClientsideAdd(){/// I wont to call the sever side function 'add()' hear} </script> Any one knows how to do this.....Thank You
You'll probably get a bunch of replies saying "You can't do that, server side scripts run on the server, client side scripts run on the client, and they happen seperately and at seperate times&qu...
Making words bold within a Textbox where text is between "<bold></bold> tags?
Hi, I have a richtext box on a aspx page from which user enters a 1000 character string which is stored as in a single colum of table. Now the user may want some of the text to be bold for which Iam also stroing the :"<bold>" tags in db. Problem is this being a sinbgle field Iam unable to figure out a way by which I can identify the text within bold tags and make it bold in report. Also remember the text user may make bold is not predefined it can be anything within the field. Please tell me how I can achive this from sql reporting.
Thanks.
If you're using...
M$, security, blunder: Make your own headline<<<???>>>
Ebusiness security The Systems & Dev Zone
In association with Worldcom
Friday 15th March 2002 5:20pm
Microsoft, security, blunder: Make your own headline
This one's a doozy...
Microsoft has admitted the patch it sent round just last week to plug the critical SNMP vulnerability had the wrong files in it.
In an embarrassing admission for the software company, which is desperately trying to clean up its act regarding IT security,
Microsoft sent out an email today confirming the English and German versions of the update had errors.
...