How to show information from sql to flash cs6 in textbox
I am having trouble with the showing of result of the information from sql to flash cs6 textbox which is dynamic text.
I am using php to transfer the data to flash.
I will like to show me the information in order like
Name score
Tom 20
Jack 10
I already try reqVar.name + " " + reqVar.score and it does not work.
And there is also 6 data in the sql to be formated like the top.
function loginFunction(evt:MouseEvent):void
var variables:URLVariables;
var req:URLRequest;
var loader:URLLoader;
if (usertxt.text == "")
resTxt.text = "Please enter your username.";
return;
if (passtxt.text == "")
resTxt.text = "Please enter your password.";
return;
variables = new URLVariables();
variables.username = usertxt.text;
variables.password = MD5.hash(passtxt.text);
req = new URLRequest("http://localhost:8088/classP/checkLogin.php");
req.data = variables;
req.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE,handleRes);
loader.load(req);
function handleRes(evt:Event):void
var loader:URLLoader;
var reqVar:URLVariables;
loader = URLLoader(evt.target);
reqVar = new URLVariables(loader.data);
if (reqVar.result == "PASS")
gotoAndStop(10);
var req:URLRequest;
req = new URLRequest("http://localhost:8088/classP/getScores.php");
req.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE,handleRes3);
loader.load(req);
else
{resTxt.text = "Login Failed";}
function handleRes3(evt:Event):void //to show the output message when it is correct in user and pass
var loader:URLLoader;
var reqVar:URLVariables;
loader = URLLoader(evt.target);
reqVar = new URLVariables(loader.data);
displaytxt.text = reqVar.name + " " + reqVar.score;
1.ckeck your syntax: the last two closing brackets are coming out of nowhere.
2.use trace commands in your eventhandlers to show if you get any results and if not use them as a hint where the error lies.
for example:
reqVar = new URLVariables(loader.data);
trace("reqVar:"+reqVar);
Similar Messages
-
Show data from sql server to oracle db
Hi,
I am using oracle 10g R1 on windows 2003 platform. On one machine database 10gR1 is running and on other machine sql server is running. I want to retrieve some data from sql server to oracle database. Please tell me how I can show data from sql server to oracle db.
ThanksTo make heterogeneous connection with oracle:
1.First make an ODBC connection, make entry in System DSN(to create a data source)
2.Make an entry in tnsnames.ora
3.Make an entry in listener.ora under SID_LIST_LISTENER
4.Make an entry in file named init<HS>.ora file located "oracle_base\oracle_home\db\hs\admin"
5.Restart the listener
e.g:
1. create a odbc system dsn named like 'sqlserver'
2. sqlserver= (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp) (HOST=xx.xx.xx.xx) (PORT=1521))
(CONNECT_DATA = (SERVICE_NAME=sqlserver))
(HS = OK)
3. (SID_DESC = (SID_NAME = sqlserver) (ORACLE_HOME = oracle_base\oracle_home\db) (PROGRAM = hsodbc) )
4.Create a file named initsqlserver.ora and make the following entry:
HS_FDS_CONNECT_INFO = sqlserver
Alternatively, you can copy the file named inithsodbc.ora and rename it to initsqlserver.ora
and edit as HS_FDS_CONNECT_INFO = sqlserver
5. lsnrctl reload listener_name
regards
adnan kaysar -
How to compare result from sql query with data writen in html input tag?
how to compare result
from sql query with data
writen in html input tag?
I need to compare
user and password in html form
with all user and password in database
how to do this?
or put the resulr from sql query
in array
please help me?Hi dejani
first get the user name and password enter by the user
using
String sUsername=request.getParameter("name of the textfield");
String sPassword=request.getParameter("name of the textfield");
after executeQuery() statement
int exist=0;
while(rs.next())
String sUserId= rs.getString("username");
String sPass_wd= rs.getString("password");
if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
exist=1;
if(exist==1)
out.println("user exist");
else
out.println("not exist"); -
SP 2013 Server + Dec 2013 CU. Upgrading from SharePoint 2010.
We have a web application that is distributed over 7-8 content databases from SharePoint 2010. All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.
while running Test-SPContentDatabase or Mount-SPContentDatabase.
EventViewer has the following reporting 5586 event Id:
Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.
After searching a bit, these links do not help:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd020a41-51e6-4a89-9d16-38bff9201241/invalid-object-name-webs?forum=sharepointadmin
we are trying PowerShell only.
http://blog.thefullcircle.com/2013/06/mount-spcontentdatabase-and-test-spcontentdatabase-fail-with-either-invalid-object-name-sites-or-webs/
In our case, these are content databases. This is validated from Central Admin.
http://sharepointjotter.blogspot.com/2012/08/sharepoint-2010-exception-invalid.html
Our's is SharePoint 2013
http://zimmergren.net/technical/findbestcontentdatabaseforsitecreation-problem-after-upgrading-to-sharepoint-2013-solution
Does not seem like the same exact problem.
Any additional input?
Thanks, Soumya | MCITP, SharePoint 2010Hi,
“All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.”
Did the sentence you mean only one database not upgrade to SharePoint 2013 and given the error?
One or more of the following might be the cause:
Insufficient SQL Server database permissions
SQL Server database is full
Incorrect MDAC version
SQL Server database not found
Incorrect version of SQL Server
SQL Server collation is not supported
Database is read-only
To resolve the issue, you can refer to the following article which contains the causes and resolutions.
http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
How to transfer information from hard drive to new mac
how to transfer information from external hard drive to new macbookpro
Have a read here Setting-up a new Mac from an old one, its backups, or a PC
Stefan -
How to show rss from other sites on my site?
how to show rss from other sites on my site?
i'd like to have a window on my site that shows rss from
another site
(their content in a window on my site)
thanks
lennyWhat version of DW do you have. The later versions have RSS
script generators (I believe) for consuming feeds. Otherwise, you
can use 3rd party sites to generate the code, or you can use a
server side scripting language to consume the feeds. -
How to transfer information from a Samsung Galaxy to my iPhone 5s
how to transfer information from a Samsung Galaxy to my iPhone 5s
I'm not sure I understand the distinction your making betweewn "from one mobile to another" and "from one mobile FOR another". If you have music on your Samsung, transfer it to your computer, add it to iTunes and sync it to your computer.
See this tutorial:
http://support.apple.com/kb/TI107 -
How to create database from .sql file
how to create database from .sql file..?? i put the sintax query in a sql file.. and i want to call it in java code..
ho to do it..??why do you want to do this from java?
i just don't see the point.
find your dba and have him/her run it for you -
How to select data from Sql server 2005 database tableinto oracle database table
Hi,
I have table text1 in sql server database and text2 in oracle database (11g). Now how to move data from SQL Server table into oracle table. So please help me how to do it.
Thanks a lot in advance.
rk
OS: Windows 7 professionalHi,
you can use export/import wizard and specify sql server as a source and oracle as destination.
I hope this is helpful.
Please Mark it as Answered if it answered your question
OR mark it as Helpful if it help you to solve your problem
Elmozamil Elamir Hamid
MCSE Data Platform
MCITP: SQL Server 2008 Administration/Development
MCSA SQL Server 2012
MCTS: SQL Server Administration/Development
MyBlog -
we formatted Database server and restored all the databases from the backup. but the sharepoint site is giving below error when i access the home page.
we have 3 application servers in that two are working fine, but only one server getting the below error.
SQL database login for 'SharePoint_Config_2010' on instance 'db server' failed. Additional error information from SQL Server is included below.
Login failed for user 'domain\user'.
could you help what is the issue?Hi,
According to your post, my understanding is that you failed to access sharepoint site with one application server.
It was due to the MOM/SCOM Agent that has a SharePoint management pack installed, the agents Windows Service runs as ‘Local System’ and thus causes this.
The workaround is to either kill the SCOM agent service, or set it to run as a dedicated service account.
In addtion, I recommend to add the logon account of the SharePoint Timer service as a user of the SharePoint_Config database. Give role membership to the account db_owner.
You also need to add the SharePoint accounts back into sql server.
There are some similar articles for you to take a look at:
http://blog.blksthl.com/2012/04/26/login-for-sharepoint_config-login-failed-for-user-domaincomputername-scom-agent/
http://msdn.microsoft.com/en-us/library/jj551781(v=nav.70).aspx
http://sharepoint.stackexchange.com/questions/51623/moved-sql-databases-for-sharepoint-2010-and-now-have-a-3351-error
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
category-database
event id-3351
source-sharepoint foundation
SQL database login for 'DB_Config' on instance 'DB\instance' failed. Additional error information from SQL Server is included below:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
I have been getting this error every hour on only 1 application server of the 2.
My farm consists of 2 app servers, 2 wfes & 2 sql nodes.
My public site is working fine. Authentication is NTLM.
SharePoint VSS Writer is disabled.None of my appPool accounts are running under local system.
I have read many forums/blogs, but couldnt find a solution for this.
Any help would be appreciated!Hi,
As I understand, you found event id 3351 in event log. Please collect more information as below:
Check if the error also occurs on other servers in your farm.
Check if backup job is scheduled at the time when the event id occurs.
Please run Config Wizard or psconfig.exe -cmd secureresources on all servers and test the issue again.
Regards,
Rebecca Tu
TechNet Community Support -
How to get information from my laptop to my ipad
I`m new on I-pad
How to get information from my laptop to my ipad
Saludos
Josè MonteroHeres some Apple Support tips on the subject.
How to transfer and sync content to your computer:
http://support.apple.com/kb/ht1296
How to transfer files between your computer and mobile apps:
http://support.apple.com/kb/PH1693
How to do file transfers:
http://support.apple.com/kb/HT4094 -
How to open notepad from sql prompt?
Hi to all
can anyone please let me know how to open notepad from sql prompt.
I tried ed command but message appears " Cannot create save file "afiedt.buf"
thanks in advanceuser13480742 wrote:
can anyone please let me know how to open notepad from sql prompt.
I tried ed command but message appears " Cannot create save file "afiedt.buf"Create a SQL*Plus shortcut on your desktop.
Create a SQL folder on your desktop (in your documents folder, or whatever desktop location you have read and write access to).
Change the +Working Directory+ of the SQL*Plus shortcut to this SQL folder you have created (via editing the properties of the shortcut).
Launch SQL*Plus via that shortcut.
It will now run from that SQL directory. This means that it will have read and write access to the current directory (allowing it to create the +afiedt.buf+ file for example). It also means that you can save your SQL scripts in this directory and execute these from the SQL*Plus command line, without having to specify a path. -
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Event ID: 5586
Task Category: Database
Level: Error
Keywords:
User: DOMAIN\SA account
Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.
The target principal name is incorrect. Cannot generate SSPI context.
This is the error, if often find in my WFE's. I googled for the error and granted DB owner roles for the service account as specified in TechNet, but no luck.
Even same error logs generated on SharePoint logs.
SqlError: 'The target principal name is incorrect. Cannot generate SSPI context.'
Source: '.Net SqlClient Data Provider' Number: 0 State: 0 Class: 11 Procedure: 'GenClientContext' LineNumber: 0 Server: 'servername\SHAREPOINT,4101'
f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.
The target principal name is incorrect. Cannot generate SSPI context.
f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
System.Data.SqlClient.SqlException (0x80131904): The target principal name is incorrect.
Cannot generate SSPI context. at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions
userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnecti...
f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
Thanks.
BadriFor SharePoint to recognize the SQL server name we provide its name and instance while installing SharePoint. When we are using SQL alias to connect to SQL, we need to configure the same alias on SharePoint server so that SharePoint recognize alias over
the network.
Having SharePoint connect to a SQL Alias instead of the NetBIOS name is always a good idea. The main benefit is, if you ever have to switch the SQL Server or connect to a SQL Cluster VIP address, you just change the Alias to point to the SQL Cluster name
on the SharePoint Server and restart the SharePoint Timer Service and you are good to go.
Please check this blog.
http://blogs.msdn.com/b/priyo/archive/2013/09/13/sql-alias-for-sharepoint.aspx
http://technet.microsoft.com/en-us/library/hh292622(v=office.15).aspx
Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered. -
How to print information from my Apple I pad to my HP Photosmart D110 series printer
How to print information from my Apple I Pad to my HP Photosmart D110 series printer ?
Hello 518,
Welcome to the HP Support Forums!
It would appear that the HP Photosmart Plus 209B is not compatible with AirPrint. Without AirPrint you can only print via an App.
I suggest the ePrint App. Getting Started with HP ePrint Mobile Apps<---
Cheers,
JERENDS
I work on behalf of HP
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!
Maybe you are looking for
-
Issue with Mapping Spaces for Receiver Flat File Fixed Length
Hi Mapping experts, my scenario is receiver FILE (fixed length) so if a validation applied on a target field returns false then I need to pass the spaces having the number of characters defined for that field example targetField length = 8 using "IF"
-
Problem in communication b/w MB90 and spool request
Hi Experts, I am trying to print the Goods Movements in MB90. I am choosing print preview and number copies more than 1, But when I went to SP02 and trying to look at the request it only displaying one copy of the request, Please guide
-
While working on some UI presentations we randomly get some errors which are not very explanatory. This error keeps repeating until we close the workspace and restart it. thanks, Regards, Archana
-
Rounding profile: convert ordered qty to another UoM
Hi all, I would like to convert the ordered qty on the sales order into a different unit of measure. This can be done with rounding profile. However, I don't want it to round if it is not exact. For example: 1 case = 100 EA. If a customer orders 100
-
Displaying 20 checkboxes in three columns
In order to display a database item (table 1) item as check box. the values of chexk boxes are the results of another table with 20 records (table2), this I will have 20 check box in my form. I proceed like the following : I created a region with typ