|
Use the line-height CSS attribute. Example:
<div style="line-height: 2em;">
Double-spaced text goes here...
</div>
- Mike
|
|
|
|
|
Am I correct in assuming that it's not possible to read the location.href of another frame in the same browser? Many people have mentioned workarounds to this problem with Netscape Navigator using something like:
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
But I don't see an equivalent for IE. I admitted defeat as I was pressed for time, but if anyone has a good explanation of this, and any potential work arounds I'd appreciate it.
Thanks,
Phil George
http://www.pgeorgeconsulting.com
|
|
|
|
|
I believe as long as each frame has been given a name you should probably be able to manipulate the DOM.
For example I have an IFRAME and inside my IFRAME I reference a element inside the parent document using (if I remember corretly)
window.parent.document.getElementById(test').innerHTML = 'test'
I have this code inside an anchor tag in the IFRAME document and when it's clicked a DIV's innerHTML is replaced. the DIV is in the parent document, not the IFRAME .
So I imagine if I can do this, you can do something like
window.parent.location.href
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
hi
so we're showing a video clip and there is a ranking bar above the video window where people can rate the video ... when they click on the ranking they want to give i fire off a script on the server and return to where i came from, ie, the video page and....
the video starts playing from the start again!! doh!!!
so is there a way i can remember where i am in the stream and then re-seek to that point on return to the page?
"there is no spoon" biz stuff about me
|
|
|
|
|
Twos ways to handle this dilema:
1) Most obvious, would be to have the FORM post to a _blank target, thus not refreshing the web page
2) Embedded media player is an activeX object and so it's possible to use JScript to program the object.
First you need to supply an ID attribute to your object tag
<OBJECT id="myPlayer">
Then it's a simple matter of calling the objects properties or functions.
myPlayer.controls.currentPosition
This property is read/write. So you would read it before submitting (store it in a cookie or pass it along in URL) and start the video again via.
player.controls.play()
HTH
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
there is no form element
i have some javascript onclick handlers that call the reqd script so there isnt a way i know of to direct it to _blank
i have all the labels etc for the player and im cutom controlling the volume etc etc
but reading ur reply gave me an idea im gonna try
thnx
"there is no spoon" biz stuff about me
|
|
|
|
|
Use a JavaScript event which creates and sends an XMLHTTP object to the server. Here's a quick script that should be able to do what you need:
xmlhttp = null;
function onUserClickRating(ratingValue) {
var dom = new ActiveXObject('Microsoft.XMLDOM');
var packet = dom.createElement('YOURDATA');
packet.setAttribute('VALUE', ratingValue);
dom.appendChild(packet);
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
xmlhttp.onreadystatechange = xmlCallback;
xmlhttp.open('POST', 'your_receive_page.asp', true);
xmlhttp.send(dom);
}
function xmlCallback() {
if(xmlhttp.readyState == 4) {
var strResponse = xmlhttp.responseText;
}
}
This *should* work. It's an extremely cut down version of my own XML Communications class I wrote for my CMS. Let me know (if you decide to use it) if it gives you any errors.
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
hello all,
My page was built using 's from CSS. Now I want the whole page to be centered but I am not able to do it.
In my CSS file I have entered:
body{
text-align:center}
but nothing goes on.
Can anyone help me out here please.
Regards,
Tiruvan
|
|
|
|
|
One way of doing it is to put all your content into one DIV tag. Then you need to align the outer DIV as such:
<br />
DIV.master {position:absolute; width:600px; left:50%; left-margin:-300px;}
Notice that the left-margin must be minus half of the width in order to align it in the center.
This also works for horizontal aligning.
Ofcourse, if you have used ABSOLUTE positioning for your content you will have to change it to RELATIVE in order to use as origin the top left coords of the master div instead of the top left coords of the BODY.
Hope that I helped.
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
try something like this on a containing DIV (or whatever elements suits the need):
#container {
position: relative;
width: 800px;
margin-left: auto;
margin-right: auto;
text-align: left;
border: 0px;
}
Wally Atkins Newport News, VA, USA
|
|
|
|
|
I need to dynamically (usign javascript) open a new window and start a new session on that window while keeping the previous session on the opener window.
Is this possible?
Is there a trick or anything that I can do?
Is this possible in PHP maybe?
Thanks!
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
php is a server-side scripting environment so u cant do any window popping stuff in it
what do u want to open the new window in response to?
"there is no spoon" biz stuff about me
|
|
|
|
|
I know that PHP is a server side srcipting language. So is ASP. I know how to open a new window using Javascript on the client. The problem is that I want along with the new browser window to start a new session on the server while keeping the session in the opener window active.
I know that when a new window opens (programmatically), the new window belongs to the same session as the opener. I dont want to do that. If on the other hand abandon the session then, I lose the session from the opener window too.
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
It maybe impossible.
I donn't know your true puspose.Saying your final requirement.
Thinking-Asking-Thinking
|
|
|
|
|
Hi,
My question concern ASP.net / HTML even DHTML (?).
I use a asp:DropdownList (databinded to a collection of objects) and set the width to a limited value. The long text is then cut. I'd like to find a way to display, in a popup for example, the entire content of the selected item.
I don't find any proper property concerning this point. Perhaps styles ? or programming DHTML ? Any other solution ?
Thanks,
Laurent.
|
|
|
|
|
There is no event (as far as I am aware) that is fired when you hover over an item while the fly-out box is present. An event fires when you select a new item, and during different parts of your click, etc. If you want the item to become visible when you hover over it in the list, you're probably out of luck. If you want to show the full item name once it is selected, that would be pretty easy, you'd just have to use the "onmouseover" event to show a hidden, absolutely-positioned div, which you'd dynamically fill with the content of the currently selected item.
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
Hi Guys,
can any one help me How to create email account in windows exchang server 2003 through programatically
thanks
Thanks
Ramakrishna.J
SoftProSys.ltd.
|
|
|
|
|
hi
i am also the same requirement.. i need to create emailids through asp.net programming.pls help for us.pls let me know yours valuable feedback.
regards
bala
|
|
|
|
|
Hi, i am in urgent need of help in creating an asp script. I Will be very
greatful if someone can help me out.
Basically i have the following script that checks the record in the database ,
if it founds one then it dispalys some text on the page. else it inserts a new
record in the database and redirects to the second page.
We are using the following code...
---------------------------------------------------------
sub createNewUserschedule()
Dim strQuery
Dim rsScheduleSpec
Dim rsSchedule
strQuery= " Select * from User_Schedule_info where (UserId=" & UserId & " and
UserScheduleName='" & trim(UserScheduleName) & "')"
Set rsScheduleSpec = Server.CreateObject("ADODB.Recordset")
rsScheduleSpec.Open strQuery, cn, 1,1
If rsScheduleSpec.recordCount <= 0 Then
rsScheduleSpec.close
set rsScheduleSpec = nothing
'if already exists alerts the user
Response.Write("<html> <center><big><BR><BR><BR><BR><BR><BR><BR><BR><BR><b> User
Schedule Already Exists</b> </big></center></html>")
else
strQuery = "INSERT INTO USER_SCHEDULE_INFO
(UserId,UserScheduleName,DateCreated,DateModified) Values ( "& UserId & ",'" &
UserScheduleName & "' ,'" & FormatDatem(date()) & "','" & FormatDatem(date())
& "')"
cn.execute strQuery
strQuery="select UserScheduleId from USER_SCHEDULE_INFO where UserId =" &
UserId & " and UserScheduleName='" & UserScheduleName & "'"
set rsSchedule = Server.CreateObject("ADODB.Recordset")
rsSchedule.open strQuery, cn,1,1
if rsSchedule.RecordCount > 0 then
UserScheduleId=rsSchedule.Fields.Item("UserScheduleId").value
Response.Redirect("UserSchedule.asp?User_Id=" & UserId &
"&UserScheduleId=" & UserScheduleId )
end if
rsSchedule.close
set rsSchedule = nothing
End If
End Sub
'execute the function
createNewUserschedule
--------------------------------------------------------
We are getting the userId and the UserSchedule NAme from a previous form.
But the problem is that in some cases when a new name is provided it inserts the
values in the database but is not able to redirect it to the new page ...
that is although it sends the 302 request but then instead of moving to the new
page it calls the same page and then founds the record and displays the text in
the if condition
Mohit Raj
(mohit.raj@mailcity.com)
|
|
|
|
|
Need more information any way try to change the recordset parameter rsSchedule.open strQuery, cn,1,1 to rsSchedule.open strQuery, cn,1,2
|
|
|
|
|
Hi,
I am giving one report page, which will be used to print on special type of Label printer.
So I need to print the text as laid down on HTML page.
But printer takes by default header and footer of IE, this makes print disturbing.
Any how, I want to ignore this text [ header and footer] at the time of printing.
I had considered Webbroser control, but I could not get the way to hide header and printer.
I had used WebBrowser1.ExecWB 7,-1
but I don't know next argument to send from VbScript/Javascript
Some suggested to change registry value, but I don't think it's feasible, Since user will not accept any registry from Internet.
If any one has idea in above regards or new way to handle from vbscript like Wscript etc....
your suggestion invited.
Thanks.
Haresh Zolapara
|
|
|
|
|
Hi dear,
I want to retrieve some periodical messages from a web service when
I call a main web method of that.
In fact I want to create an event generator by a web service.
For this reason I've created a timer in my web service to send periodical messages ( for example
a counter value that is increasing by timer) to
a client that already has triggered the web service.
But my sample doesn't work properly.
Do you have a good solution.
|
|
|
|
|
I remember we had something like this in ASP.NET forum before and the answer was no timer work there. Cause ASP.NET or WS get one request from client and send one respond to it. Another respond need one request, so in ASP.NET that timer should be placed in javascript, but here I think client should request periodical to get periodical messages.
Mazy
No sig. available now.
|
|
|
|
|
so if i include an external javascript file (so i dont have to have all the same rubbish on every page header) it seems the variables declared within it (ie, preloaded images) arent visible to the page itself ... is that true?
ie, in the external file:
image1 = new image(100,20);
image1.src = "whatever.jpg';
then in the page itself:
onmouseover="pageimage.src=image1.src"
gives me an "object required" error
is it me being an idiot or what?
"there is no spoon" biz stuff about me
|
|
|
|
|
I use this technique all the time
yer probably getting the error with pageimage.src=image1.src
If your doing a image rollover, try:
this.src=Image1.src
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|