|
Basically (and as very clearly stated), PHP Global variables no longer effect the session. What appears to have happened is that somewhere in the script there is the code:
global $GlobalVariable = "<small>In earlier versions of PHP the global variable scope used to include the session array, however that has been disabled for security reasons.</small>";
echo $_SESSION['GlobalVariable'];
Brad
Australian
- unknown PHP Developer on "Job Prospect"
Requirement: * Experience working with XML, XSL, XPath
Comment: and other things starting with X.
|
|
|
|
|
Hello,
I have a standard DHTML File Upload form (transporting the file over the post command). Now when a user clicks the submit button I don't want a new page to be loaded, I want the file to be uploaded over an AJAX call. So that not the whole page needs to be reloaded! XMLHttpRequest Object can deal with POST data, but how can I give it the POST data of the file?
With best regards,
Ben
|
|
|
|
|
|
Hello Friends,
I have a problem with recordsets.
I m getting Rs.RecordCount = -1 while calling a store procedures
here is code -
Set cmd = Server.CreateObject("ADODB.Command")
Set rs = Server.CreateObject("ADODB.RecordSet")
cmd.ActiveConnection = myCon
cmd.CommandText = "SP_Name"
cmd.CommandType = 4
cmd.CommandTimeout = 300
cmd.Parameters.Append cmd.CreateParameter("@par1",20,1,10,1)
cmd.Parameters.Append cmd.CreateParameter("@par2",20,1,10,1)
cmd.Parameters.Append cmd.CreateParameter("@par3",20,1,10,20)
cmd.Parameters.Append cmd.CreateParameter("@par4",20,1,10,Null)
Rs.CursorLocation = 3
Rs.LockType = 1
Rs.CursorType = 3
Set Rs = cmd.Execute
Response.Write "<br>RecordCount = " & Rs.RecordCount
pls give some usefull solution.
Thanks,
Ankur Bakliwal
|
|
|
|
|
The -1 means the database driver does not support record-counts for record sets.
A quick way of achieving a record count is to use the recordset GetRows() method to extract the data into a two-dimensional array. Then you can do Ubound(arr, 2) to get the number of elements in the 2nd dimension.
Regards
Andy
|
|
|
|
|
Hi to All
I would very much like to get the width and height dimensions of the window my asp.net app is running in.
Please help !!!
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
If you are getting the dimensions to size your controls or layout the page it would be best to do it in javascript so you can handle the resize event also.
document.body.clientHeight
document.body.clientWidth
only two letters away from being an asset
|
|
|
|
|
screen.availWidth and screen.availHeight
|
|
|
|
|
Thanx for the advice
I have compiled some javascript that is multibrowser compatible, if you'd like to see it look under the thread HTML Valign
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
Hey to All,
Could any one help me, How to create a web page embedded with media player without using Activex Controls & plug-ins in HTML? What Should I do? please help me.
Advance thanks,
A. Venkata Ramana
|
|
|
|
|
Hyperlink to the music file to download and play
Java Applet
|
|
|
|
|
Hi!
i want to change background of my web form at run time using C# code in Asp.net web application.
By using HTML tags i can do it like using "document.body.background"
but i want to know how to use it in C#.
Thanx
|
|
|
|
|
Hi, I worked with similar tech lately so I might be able to help you.
Write the javascript needed to change the background image, then you can call it in the server side code, say on a button click
{
Response.Write("<script language=\"JavaScript\">"); //Open Scrip Tags
Response.Write("changeBackImage(\""+myImgUrl+"\");"); //Call JavaScript Method
Response.Write("</script>"); //Close Script Tag
}
You might need to play around in it
Hope this helps
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
Can someone please help , I need to vertical align a table to the middle of the body. what tags can I use, I tried valign in the tags and it didnt work
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
|
Not exactly what I want it to do beacuse then you still have to specify the table height in pixels. What I need is the table to be centered, when the screen resolution is chnaged to smaller it doent show scrollbars in the window.
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
Try something along these lines....
<body>
<table style="width:100%; height:100%">
<tr>
<td valign="middle" align="center">
<table id="myCentredTable" > .... </table>
</td>
</tr>
</table>
</body>
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Thanx to everyone that contributed,
I am able to center my content even when resizing and decided to share my code with you all:
The JavaScript Goes in the <head> </head> tags
===============================================================================================
<!-- Gets and Sets the size of the Table to allow VAlign -->
<script language="javascript" type="text/jscript">
function setHeight(){
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
//window.alert( 'Width = ' + myWidth ); //Show When Debugging
//window.alert( 'Height = ' + myHeight ); //Show When Debugging
//Set Height of Table
document.getElementById('placeholderTable').style.height=myHeight+"px";
}
</script>
<!-- ============================= -->
================================================================================================
And then your body should look something like this
=============================================================================================
<body style=" margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; vertical-align:middle" onload="setHeight();" onresize="setHeight();">
<div align="center">
<table id="placeholderTable" cellpadding="0" cellspacing="0" border="0" style="vertical-align:middle;" >
<tr>
<td>
//Table Containing Content
</td>
</tr>
<table>
</div>
</body>
================================================================================================
Enjoy!
L Viljoen
Web Developer - PCW New Media
South African Branch
|
|
|
|
|
hi all
I am trying to export contents of Repeater Control data to excel file...which also contains a check box in one of its columns...
but i have export without that checkbox control column..
how can i do it..pls help (ASP.NET/C#.NET)
|
|
|
|
|
hi, very very urgent. i am using crystal report on a web form. on the same web form i am also using a toolbar from evolve software. i invested a lot time with both controls. everything worked fine until i got instructions that in evolve toolbar i must use a dropdownlist to chose data. evolve toolbar has no dropdownlist object, so i have to use ControlContainerItem to add dropdownlist to toolbar. problem is when i add it to evolve toolbar and click on navigation buttons of crystal report toolbar, it does not work. i mean i click on next button and can navigate to next page but when i click again on next, it remains on same page and so on. so i can navigate only one page further and then no more. crystal report toolbat get this problem only if i add dropdownlist control to evolve toolbar. if i do not add, crystal report toolbar works very fine and i can navigate until last page. i can take another toolbar instead of evolve toolbar but i have invested a lot of time in using evolve toolbar and right now i have no time to take another toolbar and investting time to first understand it and then use it. so please help me to explain why crystal report toolbar is behaving so stupid. follows is the web page with code behind.
<evolve:toolbar>...............
<evolve:controlcontaineritem id="customItem" runat="server"
="" cssclass="toolbartext" itemcelldistance="100px">
<asp:dropdownlist id="ddlYear" runat="server" width="150"
="" onselectedindexchanged="ddlYear_SelectedIndexChanged">
<asp:listitem>last 12 months
<cr:crystalreportviewer id="CrystalReportViewer1" runat="server"
="" autodatabind="true" enabledatabaselogonprompt="False" reportsourceid="CrystalReportSource1" displaygrouptree="False" enableparameterprompt="False" hascrystallogo="False" hasgotopagebutton="False" hassearchbutton="False" hastogglegrouptreebutton="False" hasviewlist="False" height="1121px" width="753px" onnavigate="CrystalReportViewer1_Navigate">
<cr:crystalreportsource id="CrystalReportSource1" runat="server"
="" onload="CrystalReportSource1_Load">
<report filename="..\CrystalReports\DeltaPrMonth.rpt">
Codebehind:
protected void Page_Load(object sender, EventArgs e)
{
customItem.Controls.Add(ddlYear);
}
many many thanks for your urgent help.
paijy
paijyj
|
|
|
|
|
I really hope somebody can help me here, this is wrecking my head...
Our application is sending emails through CDO (from asp) and we have recently had the requirement to send these mails in foreign character sets (greek specifically in this case). So i am setting the mail encoding like so:
With objMessage.Bodypart ' Initialize the bodypart to support UTF-8
.ContentMediaType = "text/plain"
.Charset = "utf-8"
.ContentTransferEncoding = "8bit"
End With
On my development system (XP, which has been set to all Greek at present, just to confuse me), i send the email and everything is fine. On our test system (Server 2003, also all greek), everything but the subject line of the email is fine...
When i look at the source of the emails from either system, the email from the test system is missing the encoding (?utf-8?) markup around the subject text.
Does anybody have any idea why this might be happening...?
|
|
|
|
|
|
Doesn't really cover for asp using CDO...
|
|
|
|
|
Hi I am Manigandan, I want to know, How to create dynamic Email Id on mail server.........
Please Help me out..........
R.Manigandan
|
|
|
|
|
I dont know if it is exactly what u need , but use autonumbers in your database, In SQL 2005 use the identity specification property of the column and set it to true. it will have a auto increment.
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|