|
I experienced a strange behavior with overlapping tags. I use the IMarkupServices interface with IMarkupPointer to parse a document and display the "class" attribute of the currently selected <font> tag, if any (just like Winword displays the style of the current selection).
When I parse the following code (after selecting the text portion marked green in the view), strange things happen:
some text<font color="darkgreen"><font class="g3">Normal<font class="g4">Big</font>Normal</font></font>some other text<br />
The IMarkupPointer pHtmlStart starts at the right point, but when it moves on after looping once and successfully retrieving the "class" attribute, pHtmlStart->CurrentScope returns a NULL element and seems to have gotten RIGHT of the pHtmlEnd pointer.
Due to this behavior, I cannot retrieve any other elements in the selection, thus I am not able to indicate "there are elements with different CLASS attributes in the selection.".
Has anybody experienced something like this? Or is there another solution to the problem? Anybody knows how FrontPage handles this? Or am I doing something totally wrong?
If anybody is interested I will post some code here to evaluate the behavior.
Thanks for reading.
-- modified at 3:18 Friday 7th July, 2006
|
|
|
|
|
hello...i get a problem with getting front page 98's hover buttons..below is my code but i didnt know wheter is wrong or not..anybody can help me to solve this problem.
<applet code="fphover.class" codebase="./" width="120" height="24">
<param name="color" value="#000080" />
<param name="hovercolor" value="#0000FF" />
<param name="textcolor" value="#FFFFFF" />
<param name="text" value="C Programming" />
<param name="effect" value="glow" />
<param name="url" valuetype="ref" value="http://metalab.uniten.edu.my/~azhana/indexCProg.html" />
thank you....
|
|
|
|
|
I want to detect if the client browser is using popupblocker or not.. or is there any solution to popup a window regardless of that popblocker as Hotmail and yahoo shows popupwindow on deleteing of emails
thanx in advance
R A M
|
|
|
|
|
hello,
I guess that there are several methods for doing this.
In fact, what you need to do is to make sure that the pop up is open. This can be done by setting a flag variable on the opener window when the pop up opens. this is not a very good solution.
What I would do would be to assign the pop up window to an object variable on the opener. all you need to do is to check if this variable is null after opening the pop up.
Hope this helps!
Jason Kataropoulos
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
i have two div first div upper then the 2nd div . when first div was close or hide 2nd div automatically move up . please help me regarding this problem .
-- modified at 0:44 Friday 7th July, 2006
|
|
|
|
|
Yes, that sounds correct.
Do you feel that there is a problem with this?
---
b { font-weight: normal; }
|
|
|
|
|
i want to develop a site just like my yahoo .
|
|
|
|
|
I am not familiar with that site, so that conveys no information at all to me.
Even if I familiarize myself with that site, it still brings no clarity to whether you have a question or not.
---
b { font-weight: normal; }
|
|
|
|
|
You can use javascript. Copy the following and save it to an html file and try it out:
<html>
<head>
<script>
function ShowHideDivs(){
var cb = document.getElementById("cb")
var divone = document.getElementById("div1")
var divtwo = document.getElementById("div2")
if (cb.checked == true){
divone.style.visibility ="visible";
divone.style.display = "block";
divtwo.style.visibility ="hidden";
divtwo.style.display = "none";
}
else{
divtwo.style.visibility ="visible";
divtwo.style.display = "block";
divone.style.visibility ="hidden";
divone.style.display = "none";
}
}
</script>
</head>
<body>
<input id="cb" type="checkbox" onclick="ShowHideDivs();" />
<div id="div1">
Here is text inside div1.
</div>
<div id="div2">
Here is text inside div2.
</div>
</body>
The key is to what you are looking for is this part .style.display="none" / "block"
NOTE: The div tags won't show here since I used the code tag. Make sure you wrap div tags around the two sentences with ID=1 and ID=2 respectively.
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
How can I pass attributes from one jsp page to another jsp page using jsp?<br />
<br />
I have seen pages like: <!--a href= "test.jsp? myvar='myvar1'"--><br />
<br />
Can I do this, if it works how do i retrieve the variables that would have been sent?<br />
-- modified at 7:40 Thursday 6th July, 2006
|
|
|
|
|
I already replied to this question in the thread you created yesterday.
If you just ignore the replies that you get, don't you think that people will start ignoring you?
---
b { font-weight: normal; }
|
|
|
|
|
Its cool, i just found out. " does work.
Sorry for posting it twice, i thought i wouldnt get a reply.
Thanks anyway.
|
|
|
|
|
If you didn't think that you would get a reply, why did you post at all?
---
b { font-weight: normal; }
|
|
|
|
|
i Want to add and delete child nodes dynamically when selected .
Can anyone help me .
Thanks in advance.
|
|
|
|
|
|
Hi Friends,
Please let me know if anyone knows the code to disable the right click in a web page.
Thanks,
Vipin
|
|
|
|
|
No, anyone doesn't know that code. You, for an example, don't.
If you meant to ask if someone knows the code, I know for certain that someone does. I, for an example, do.
Why would you want to do that? Is there any specific reason why you would want to reduce the functionality of the browser?
---
b { font-weight: normal; }
|
|
|
|
|
|
If you are trying to hide your HTML or javascript don't bother. Anyone that cares to see it knows all they have to do it turn off javascript in their browser..or use the firefox web developer extension.
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
:(i want to move row up and down through javascript pop-up menu . for example each row have a link "move row" . when i click on "move row" link pop-up menu open with the link "move up" or "move down" to solve this problem help me
|
|
|
|
|
I have 3 asp pages - the first is a search page (call it 1.asp), the second a results page (call it 2.asp), the third a view of a particular result clicked on by a user (call it 3.asp).
Using Javascript to go back from the particular result (3.asp) to the results page (2.asp) - eg javascript:history.go(-1); actually throws me back to the original search page (1.asp) so the user has to select their search criteria again.
Can anyone tell me where I'm going wrong? Be gentle, I've just spent a year on maternity leave with baby-brain
A mum and loving it!
|
|
|
|
|
how are you getting from 1 to 2 to 3?
|
|
|
|
|
Try javascript:history.back(1)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
did you try something as:
window.location = "page.asp";
I hope it helps.
Thanks.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
i want to call javascript function on pop-up menu item or link . how shall i do this ??? for example i have a pop-up menu with aboutus and contact us menu item or link . and i calljavascipt function when user click aboutus link . please help me regarding this problem .
|
|
|
|