Forum Array

PDO MYSQL - Fatal Error: Call To A Member Function Fetch() On A Non-object

I am having difficulty in setting up this function. Probably a very easy fix however I'm just starting to use PDO and I am unsure as to how to get this working. My problem is here for( $i = 1; $row = $STH->fetch(); $i++ ) { whenever the code executes this is arrives at Fatal error: Call to a member function fetch() on a non-object in /usr/home/webmaster/nano/pages/search.php on line 21 if($_POST['keyword']) { $start_time = getmicrotime(); $keyword = addslashes( $_POST['keyword'] ); $results = addslashes( $_POST['results'] ); $STH = $DBH->query('SELECT p.page_url AS url, COUNT(*) AS occurrences FROM search_page p, search_word w, search_occurrence o WHERE p.page_id = o.page_id AND [Code]....

View Answers

Very Similar Questions

How To Pass Object To Function Called With SetInterval
www.webdeveloper.com
I want to pass the object to a function that is called with a setInterval, like so: Code: function Test(obj) { divTest.innerText = obj.id; } function ClickMe(obj) { itv = setInterval( 'Test(' + obj + ')' , 10 ); } So when I click a link I want to execute every 10 msec a test. This off course does not work.

Error: Call To A Member Function Add_current_page()
www.phpfreaks.com
OK, im not too crash hot on classes, so hoping someone can help me with this error: QuoteFatal error: Call to a member function add_current_page() on a non-object in /path/to/includes/application_top.php on line 312 This is from an osCommerce application (I know someone will probably tell me to post in 3rd party scripts, but I am more interested in whats generally causing the error). The thing that confuses me is that application_top.php is only 236 lines long.

Call A Function And Get The Error?
www.phpbuilder.com
If I do not have anything in a sql database and I call a function will I get this error?

MVC :: Object Reference Not Set To An Object Error When Try To Add Controller
forums.asp.net
When I try to add a new controller in ASP.net MVC2 beta, I get a strange error: Object reference not set to an instance of object, and the system returns me to the template page. I can add an MVC 1.0 controller. Does anybody experienced this isssue? I migrate my project from 1.0 to beta 2. as described in the release document.

SetInterval Of Function - Called From Function - Display And Update
www.codingforums.com
I'm trying to make a time script for an app I'm making (this is not an HTML document; it's a .js file to be used with Titanium) however I'm having trouble getting the function to display and update. function updateClock() { setInterval ( 'kiTime()', 1000 ); } function kiTime () { //Get current date and time [Code]... If I use kiTime() under the text field I will get the current time (or at least the time the app was opened), however if I call updateClock() it's blank.

If Add Reference To Excel 9.0 Object Library And Set Button On Toolbar , Error
www.vbcity.com
Hi, i am getting error if i add reference to Microsoft Excel 9.0 object library1. add reference to Projext->Reference and select Microsoft Excel 9.0 object library2.add one toolbar on form13. Run the following codePrivate Sub Form_Load()Dim btnX As ButtonToolbar1.Buttons.Add (1)Set btnX = Toolbar1.Buttons(1)End Subif you remove the reference then everything will work fine but if add reference then type mismatch errorwhy these error is occuring ?

Command Button: Call Function And Wait Till It's Done
www.vbforums.com
How can I wait till a function if dome then continue i.e.Private Command1_Click() FirstThingToDo 'Wait till the first is done 'Then SecondThingToDoEnd SubThanks in advance.

Command Button: Call Function And Wait Till It's Done
www.vbforums.com
How can I make a command button wait till a function it called is done, only then continue?I.E.:Private Command1_Click()check-something-long()'wait till it's done then carry onmore things!End SubThanks in advance!

Calling Function For Command Button
www.vbforums.com
hi, i'm a newbie on programming. i am using smart card reader and have the sdk(gsdkpcsc.dll) for programming.then, i already wite down all the declaratiion for the module.i also have made the command button.my project is, i) when click at the READ button, it will start communication with smart card in the card reader, then it'll get the identification number from the smart card, 12 digit.then, the number appeared at text boxii) by clicking verify buuton,the 12 digit number is compared with the database with m Accessiii) if matches with databse, then it will send a unique charachter such as AEI at the serial port of my microcontrooler. this project is for 2 user.iv) if not match, then it says, access is denied.my problem s, i need help on the code lines for READ and VERIFY..can anyone help?READ > open session, commnubication, get dataVERIFY > match with database and send AEI(user 1), IOU(user 2) to serial port i need to get 12 digit numb for this function Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _my module code :/********************************************************Option Explicit'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' General Declaration'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@VB Code:Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _() As Integer    ' open communication session with the card reader Declare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12" _(ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As Integer) As Long' open communication session with the card in the reader Declare Function CardDisconnect Lib "gsdkpcsc.dll" _Alias "_CardDisconnect@0" _() As Integer' Closes communication session with the card in the reader Declare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0" _() As Integer' Closes communication session with the card reader Declare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _(ByVal pcExplanation As String) As Integer' Checks if card is in card reader Declare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _() As Long' Reset the card Declare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _() As Integer' returns information on last error that occured Declare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _() As Integer' select JPN to read JPN data Declare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _() As Integer' select JPJ to read JPJ data Declare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _() As Integer'Select IMM to read IMM data '*************************************************************************'                            JPN section'************************************************************************* Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _Alias "_JPN_OrgName@4" _(ByVal pbOrgName As String) As Integer'original name in 150 bytes Declare Function JPN_MyKadName Lib "gsdkpcsc.dll" _Alias "_JPN_MyKadName@4" _(ByVal pbMyKadName As String) As Integer' 3 lines of name stored in blocks 0f 30+30+20=80 Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _Alias "_JPN_KPTName@4" _(ByVal pbKPTName As String) As Integer' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40 Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _Alias "_JPN_IDNum@4" _(ByVal pbIDNum As String) As Integer' ID number in 13bytes Declare Function JPN_Gender Lib "gsdkpcsc.dll" _Alias "_JPN_Gender@4" _(ByVal pbGender As String) As Integer' Gender is 1 byte(L for lelaki , P for perempuan) Declare Function JPN_OldIDNum Lib "gsdkpcsc.dll" _Alias "_JPN_OldIDNum@4" _(ByVal pbOldIDNum As String) As Integer' Old ID Number is 8 bytes Declare Function JPN_BirthDate Lib "gsdkpcsc.dll" _Alias "_JPN_BirthDate@4" _(ByVal pbBirthDate As String) As Integer' Date of birth is 4 bytes (numeric) Declare Function JPN_BirthPlace Lib "gsdkpcsc.dll" _Alias "_JPN_BirthPlace@4" _(ByVal pbBirthPlace As String) As Integer Declare Function JPN_DateIssued Lib "gsdkpcsc.dll" _Alias "_JPN_DateIssued@4" _(ByVal pbDateIssued As String) As Integer Declare Function JPN_Citizenship Lib "gsdkpcsc.dll" _Alias "_JPN_Citizenship@4" _(ByVal pbCitizenship As String) As Integer Declare Function JPN_Race Lib "gsdkpcsc.dll" _Alias "_JPN_Race@4" _(ByVal pbRace As String) As Integer Declare Function JPN_Religion Lib "gsdkpcsc.dll" _Alias "_JPN_Religion@4" _(ByVal pbReligion As String) As Integer Declare Function JPN_EastMsian Lib "gsdkpcsc.dll" _Alias "_JPN_EastMsian@4" _(ByVal pbEastMsian As String) As Integer Declare Function JPN_RJ Lib "gsdkpcsc.dll" _Alias "_JPN_RJ@4" _(ByVal pbRJ As String) As Integer *******************************************************/Edit: Added [vbcode][/vbcode] tags for clarity. - Hack

Calling Function For Command Button
www.codeguru.com
hi, i'm a newbie on programming. i am using smart card reader and have the sdk(gsdkpcsc.dll) for programming.then, i already wite down all the declaratiion for the module.i also have made the command button.my project is, i) when click at the READ button, it will start communication with smart card in the card reader, then it'll get the identification number from the smart card, 12 digit.then, the number appeared at text boxii) by clicking verify buuton,the 12 digit number is compared with the database with m Accessiii) if matches with databse, then it will send a unique charachter such as AEI at the serial port of my microcontrooler. this project is for 2 user.iv) if not match, then it says, access is denied.my problem s, i need help on the code lines for READ and VERIFY..can anyone help?READ > open session, commnubication, get dataVERIFY > match with database and send AEI(user 1), IOU(user 2) to serial port i need to get 12 digit numb for this function Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _my module code :/********************************************************Option Explicit'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' General Declaration'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _() As Integer ' open communication session with the card readerDeclare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12" _(ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As Integer) As Long' open communication session with the card in the readerDeclare Function CardDisconnect Lib "gsdkpcsc.dll" _Alias "_CardDisconnect@0" _() As Integer' Closes communication session with the card in the readerDeclare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0" _() As Integer' Closes communication session with the card readerDeclare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _(ByVal pcExplanation As String) As Integer' Checks if card is in card readerDeclare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _() As Long' Reset the cardDeclare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _() As Integer' returns information on last error that occuredDeclare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _() As Integer' select JPN to read JPN dataDeclare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _() As Integer' select JPJ to read JPJ dataDeclare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _() As Integer'Select IMM to read IMM data'*************************************************************************' JPN section'*************************************************************************Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _Alias "_JPN_OrgName@4" _(ByVal pbOrgName As String) As Integer'original name in 150 bytesDeclare Function JPN_MyKadName Lib "gsdkpcsc.dll" _Alias "_JPN_MyKadName@4" _(ByVal pbMyKadName As String) As Integer' 3 lines of name stored in blocks 0f 30+30+20=80Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _Alias "_JPN_KPTName@4" _(ByVal pbKPTName As String) As Integer' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _Alias "_JPN_IDNum@4" _(ByVal pbIDNum As String) As Integer' ID number in 13bytesDeclare Function JPN_Gender Lib "gsdkpcsc.dll" _Alias "_JPN_Gender@4" _(ByVal pbGender As String) As Integer' Gender is 1 byte(L for lelaki , P for perempuan)Declare Function JPN_OldIDNum Lib "gsdkpcsc.dll" _Alias "_JPN_OldIDNum@4" _(ByVal pbOldIDNum As String) As Integer' Old ID Number is 8 bytesDeclare Function JPN_BirthDate Lib "gsdkpcsc.dll" _Alias "_JPN_BirthDate@4" _(ByVal pbBirthDate As String) As Integer' Date of birth is 4 bytes (numeric)Declare Function JPN_BirthPlace Lib "gsdkpcsc.dll" _Alias "_JPN_BirthPlace@4" _(ByVal pbBirthPlace As String) As IntegerDeclare Function JPN_DateIssued Lib "gsdkpcsc.dll" _Alias "_JPN_DateIssued@4" _(ByVal pbDateIssued As String) As IntegerDeclare Function JPN_Citizenship Lib "gsdkpcsc.dll" _Alias "_JPN_Citizenship@4" _(ByVal pbCitizenship As String) As IntegerDeclare Function JPN_Race Lib "gsdkpcsc.dll" _Alias "_JPN_Race@4" _(ByVal pbRace As String) As IntegerDeclare Function JPN_Religion Lib "gsdkpcsc.dll" _Alias "_JPN_Religion@4" _(ByVal pbReligion As String) As IntegerDeclare Function JPN_EastMsian Lib "gsdkpcsc.dll" _Alias "_JPN_EastMsian@4" _(ByVal pbEastMsian As String) As IntegerDeclare Function JPN_RJ Lib "gsdkpcsc.dll" _Alias "_JPN_RJ@4" _(ByVal pbRJ As String) As Integer*******************************************************/

Calling Button Code From Other Object Event - Solved
www.vbforums.com
I have working code for a Button in a form. I would like to call same code from Listbox event change. similarly, I want call same code from the menu list item. How to do it?

Call Javascript Function From Code Behind After Server Side Code Executes
stackoverflow.com
I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.

C# - Copy Several Textboxes Data Into Target Textbox Calling Same Function
stackoverflow.com
I have several input textboxes with different id and class name. I want to track changes in any of the input textboxes, and reflect it into target textbox, but don't want to replicate the function for every individual textbox. Is it possible to use one function for all?

Getting Error Message While Calling Web Service Method From Application
forums.asp.net
i am getting this error message while calling a web service method from my application The underlying connection was closed: The connection was closed unexpectedly i am using asp.net 2.0.

JQuery :: .toggle() Called By Window.setInterval() Not Functioning
stackoverflow.com
I am trying to alternate between two logos every 5 seconds using the following code: window.setInterval( function () { //breakpoint 1 $("#logo").toggle( [Code].... I can get a simple toggle to work, but when I introduce the toggle within window.setInterval(), the toggle's two handlers won't fire. I set breakpoints on the lines directly beneath the comments in the code above. Breakpoint 1 hits every 5 seconds. However, Breakpoint 2 and 3 never hit. Why are neither of the toggle function's handlers firing?

Jquery :: Timing - Setup A Worker Function Thats Called Every 5ms By SetInterval
stackoverflow.com
Im working on processing data. I setup a worker function thats called every 5ms by setInterval. I'm calculating the amount of time it takes the function to run, its 0 to 1ms. I'm also calculating the speed at which the function is actually invoked and its about 80ms. My question is, if it takes only 1ms to run through the function, and I'm calling it every 5ms, why is it invoked every 80ms? I do have a second worker function updating the canvas based on the current data the processing function is doing, but its run in its own setInterval. These numbers were taken while in Chrome. I've tested in Opera, Safari, FF3 and FF4 as well and the issue is the same, though the invoke time is different. (all this on a mac) I know this code does not yet work in IE. I know parts of this are ugly.. I haven't started to clean up the code yet... Lines 77 to 84 are the setInterval calls. You can see a working example here:

Call Database Row Into A Function?
stackoverflow.com
I am writing a function which is called into a page, but I am not sure how to call information form database into the function in order to use them. Basically I am doing some calculation in the function where I need information form database to do them. From a comment... What I am trying to do is this: I have a page in php which retieves some info from database and all works fine. I am writing a function that needs to make some calculation based on some fields in the database. What I cannot solve is how to get this information form the database into my function. I have tired this: function CalculateCost () { $low_season = $row_rsbooking['cost']; etc. etc. then making some calculations but I am getting nowhere. I am not sure if the function is getting the information form database in order to make calculation.

Access $_POST Array From Objects Call On Page?
stackoverflow.com
have a page that receives POST data from a form. I also have a form validation class that attempts to access the $_POST array when a FormValidation object is created on the page. However, the FormValidation object does not seem to have access to the $_POST array. Why is this happening, and how can I fix this?EDIT: Added code :)This code is from register.php if($_SERVER['REQUEST_METHOD'] == 'POST') { var_dump($_POST); [code]....

Hash() Function Error
phpbuilder.com
I have been getting this error and I don't understand why cause I have used the same code for another project and it works fine. This is the error I get: Quote: Fatal error: Call to undefined function: hash() in /home/content/u/n/e/uneedvac/html/admin/index.php on line 14 the code I used is this: PHP Code: $userpass = hash('md5', $_POST['upass']) ; I was thinking maybe the server doesn't support it.

Call To Undefined Function Hash() In /var/www/site/
stackoverflow.com
I have called hash function in my code like (php version 5.2.14 ) $username =hash("sha256",trim($_POST['username'])); $password =hash("sha256",trim($_POST['password'])); but I got error like Call to undefined function hash() in /var/www/site/

Mail Function Errors
www.codingforums.com
I have some code to defend against spam etc and when I run it I get the following error: Parse error: syntax error, unexpected T_FUNCTION, expecting '{' in /home/....t/public_html/phptest.php on line 462- in this line: function valid_email($address) The complete portion of code (below //Mail things) which is inserted in my (one) php page is this:

Function - Validate Ip Address And Return Errors
www.phpfreaks.com
I have vreated a site and am now trying to validate the ip address i have created a function but am failing to get it to work i need to add the errors to add to the errors array but instead it keeps resetting and leaving me with the last error that is if i can understand the concept behind whats happening it will be of great benefit heres the code [code]...

Get The Error Message For The Mail() Function?
stackoverflow.com
I've been using the PHP mail() function. If the mail doesn't send for any reason, I'd like to echo the error message. How would I do that? Something like $this_mail = mail('example@example.com', 'My Subject', $message); if($this_mail) echo 'sent!'; else echo error_message;

Call A Js Function On Pressing Enter Key?
stackoverflow.com
I'd like to know how I can initiate a javacsript function when pressing the enter key. I'm trying to create a function called handleEnter(event, fn). I want to use the function on an input field eg code...

Error With Mysql Query
phpbuilder.com
I'm trying to get a simple search query of a table of news articles working. But it keeps giving me an error for the "mysql_fetch_array( )" on line 34. I can't see what I've done wrong. Code:

Get Error Due To MySql Query?
www.daniweb.com
I have written a small code to search a particular value in MySql database and then to display the record based on that value - Like to search a Employee code in database and then to display detail of that Employee in same page after that if user want he/she can delete that record. But I am getting 2 error Notice: Undefined index: dtext in C:catassetdeleteadministrator.php on line 53Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:catassetdeleteadministrator.php on line 55 <body onload="fo();"> <h1>Welcome <font color="#FF6600"><?php echo $_SESSION['loginname']; ?></font></h1>| <a href="logout.php">Logout</a> [code]....

Mysql Error But Query Still Working
www.phpfreaks.com
The code below is generating a number of new entries in my tries table, inserting 4 values. When $val contained an integer it worked fine, but I changed it to contain text, and suddenly I'm getting an error. Despite the error, it still inserts the correct amount of new entries in the table. What's going on? Code:

Parse Error For A MySQL Query
stackoverflow.com
I got this error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/oznola38/public_html/code/classifieds.php on line 30 for this code: $qry = "INSERT INTO classified (name, address, city, state, zip, phone, fax, email, section, weeks, ad_text, link, display) VALUES ('".$name."','".$address."','".$city."','".$state"','".$zip."', '".$phone."','".$fax."','".$email."','".$section."','".$weeks."', '".$ad_text."','".$link."','N')";

Separated Mysql Statement Query - Getting Error
stackoverflow.com
So, I can run the following statements from within mysql itself successfully. SET @fname = 'point1'; SELECT * FROM country WHERE name=@fname;` But when I try to pass the query through php like this and run it, I get an error on the second line $query = "SET @fname = 'point1';"; $query .= "SELECT * FROM country WHERE name=@fname;";

New Eyes On A Mysql Query Statement - Db Error
stackoverflow.com
I'm new at this, what are the problems with this statement: $sql=" SELECT * FROM `calendar` WHERE `DayId` ='".$day."'"; $result = mysql_query($sql, $conn); if (!$result){ echo "DB Error, could not query the database "; echo 'MySQL Error: ' . mysql_error(); exit; } while ($row = mysql_fetch_array($result)) { //set $dayType $dayType = $row[DayType]; } I keep getting the error: DB Error, could not query the database MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 but when I put an "echo $result;" in after the line that starts with $result=... then I get a value for $result of "Resource id #2"

MySQL Query Gives Error: Unexpected T_CONSTANT_ENCAPSED_STRING?
stackoverflow.com
I know this error is usually a problem with unclosed quotes and such, but I can't seem to find the problem here. I suspect it's something to do with the parentheses, who knows though. The error:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING The query:$result = @mysql_query('select * from quotes inner join game on game.id=quotes.game_id inner join person on person.id=quotes.speaker_id where game.id = ' . $gameid . ' and person.id in (SELECT person.id FROM person[code]....

JQuery :: Allow Calling Function To Override Default Options
stackoverflow.com
I want the calling Function to be able to override the default options provided in the showDivPopUp function. function calling(){ showDivPopUp("title of pop up box", "message to show", { buttons:{ Yes: function () { $(this).dialog("destroy"); }, No :function () { $(this).dialog("destroy"); }}});} function showDivPopUp(title,msg,options){ var mgDiv = $("#msgDiv"); mgDiv.attr("innerHTML", msg); return mgDiv.dialog({ modal: true, buttons: { Ok: function () { $(this).dialog("destroy"); }}, resizable: true, show: "explode", position: "center", closeOnEscape: true, draggable: false, title : titl, open: function (event, ui) { $(".ui-dialog-titlebar-close").hide(); } });} So, the above code should show two buttons viz. Yes and No instead of just OK. I don't want to do if check for each option. In options parameter there might be options for which default is not applied. So the calling function may specify size option which is not mentioned in the showDivPopUp function.

Call COM Function With OLE_COLOR As An Argument?
stackoverflow.com
I am trying to call a COM object from PHP using the COM interop extension. One function requires an OLE_COLOR as an argument? Is there any way to pass this kind of value from PHP? I have tried passing a simple integer value with no success. $this->oBuilder->Font->Color = 255;

Convert Custom JSON Object To A .NET Object?
stackoverflow.com
I have a JSON object that looks like this. { "Errors":{ "err1":[ //* Array of err1 objects [code].... PD: I'm currently using Newtonsoft's JSON.Net library. Public Sub New(ByVal jsonText As String) Dim jObject As JObject = jObject.Parse(jsonText ) Dim jErrors As JToken = jObject("Errors") Dim jS = New JsonSerializer() [code]....

Parsing - Flex 3: Getting Error Of "Parse Error At '<mx:ComboBox>'>
stackoverflow.com
<mx:List columnCount="5" rowCount="11" width="100%" height="100%" dataProvider="{parentDocument.crewPositionsAC}" useRollOver="false" alternatingItemColors="[0xffffff, 0xe5e5e5]" borderStyle="none"> <mx:itemRenderer> <mx:Component> <mx:Text text="{data}" color="#840021" selectable="false" /> <mx:ComboBox id="studentType"> [Code]... Anybody able to see what's causing the error?

Flash :: Handle A Time Object From Php In Flex (parse It To A Date Object)
stackoverflow.com
I've got a php backend which delivers a time (e.g. '07:00:00'). This time is recognized as a string but I need it as a Date. So what I need is: Convert a string '07:00:00' to a Flex Date object. Is there a way to do this (without using regular expressions)?

MVC :: Delete View - Object Reference Not Set To An Instance Of An Object
forums.asp.net
I'm walking through the ASP.NET MVC "Contacts Manager" tutorial. [URL] I've followed exactly what's said in the tutorial, but I keep getting the following exception from the "Delete View". Object reference not set to an instance of an object.Line 10: Line 11: Are you sure that you want to delete the entry for Line 12: <% = Model.FirstName %> <% = Model.LastName %> ? Line 13: Line 14: <% using (Html.BeginForm(new { Id = Model.Contact_Id })) When i suprress line 12, I still get this Line 12: Line 13: Line 14: <% using (Html.BeginForm(new { Id = Model.Contact_Id })) Line 15: { %> Line 16: <p> I just don't know. Maybe the POST DELETE method is not communicating with the datacontext... The important question is why the only the "Delete View" is not working???

Add Properties To StdClass Object From Another Object?
stackoverflow.com
I would like to be able to do the following: $obj = new stdClass; $obj->status = "success"; $obj2 = new stdClass; [code]...

Access Function Argument In Different Function?
stackoverflow.com
I have this function: <?php myWidget() { ?> <div id="<?php echo $args['widget_id']; ?>"> <p>Something</p>[code]... (widget_id is Wordpress core function so I have no direct access to that, it just simply generates widgets name)I wanted to add my widget as a shortcode so needed to create another function: function myWidget_shortcode( $atts ) { extract( shortcode_atts( array( /* attributes here */ [code].... the_widget just simply calls widget called myWidget.The point is, everything works good, but id=" " is always empty when I use the second code.I know it's a Wordpress question, but I believe this has more to do with my PHP code.

Url's Shows Non Secure When Moving Away From A Secured Link Without Hardcoded Url's In Html
stackoverflow.com
I have an asp.net site. It has an order form which is accessible at https://secure.example.com/order.aspx. The links on the site do not include the domain name. So for example the home page is 'default.aspx'.The issue is that if I click on a link like the home page from the secure page, the url becomes https://secure.example.com/default.aspx instead of http://www.example.com/default.aspx.What's a good way to handle this? The scheme should automatically work using any domain name based on where it's launched from. So if the site is launched from 'localhost', moving away from the secured page, the url's should be http://localhost/...

Program That Fetches Website Files For Backup
bytes.com
Do you have or know of a program or script available that runs on myWindows 98 desktop machine that when I run it goes to my variouswebsites and downloads certain selected data files and sends them backto me for backup purposes?Thank you.Allen

Non Valid Matter 2
www.vbforums.com
why at times me from error? rit = Sqr((set_ntare * totale2 - totale1 * totale1) / (set_ntare * (set_ntare - 1)))modulepublic rit as variant

HTC Aria :: Unable To Install Non-market Apps
androidforums.com
AT&T locks its latest Android phone -- the Aria -- out of sideloading apps, too | Android Central.I thought this phone suppose to be open.

Sprint HTC Hero :: Separate Ringtones For Contacts And Non Contacts
androidforums.com
In my previous phone I could set different ringtones for those in my contacts list and then another ringtone for those numbers not in my contacts list so I could tell by the ringtone if someone was calling that was in my contacts list or not.On the Hero there doesn't seem to be any way to do this.I was also able to set different volume levels for various notifications (ie, louder for phone calls and quieter for email and sms notifications).Does anyone know if this is possible on the hero?

Android :: Contacts - Fetch Contacts Number From Phone
groups.google.com
when i am using this class it is written there use contactscontract but am not getting how to use this class to fetch contacts number from phone.....

C# - XML Serialization Assembly For Non-web Projects
stackoverflow.com
I am attempting to solve the well known problem of automatically generated serialization assemblies in VS 2010, both VB.NET and C#. The "Generate Serialization Assemblies" option in project settings does nothing for non-web projects (see [URL]). Thus the calls to serializers generate file i/o exceptions that are very unfortunate, and for which there is no cure. The method suggested above does not appear to work with VS2010 and SGEN still runs with /proxytypes enabled.

ActionScript 3.0 :: Load JSON / Formatting Non-array Data?
www.actionscript.org
I'm trying to format JSON data without using brackets for an array. To start off with, this works (to be followed by what doesn't)[code]...

ActionScript 3.0 :: Call Javascript Function With JSON Through External Interface?
www.actionscript.org
I need to call a function in JS that's expecting a JSON object. Can I do this from External Interface? The company's example (after the include file url) in HTML looks like this: //there's an js include URL earlier// Shopwithme.Initialize({ "id":"prod1234", [code]... But, I need to dictate these vars through Flash. How do I call this function using External Interface?This is my EI code, but I'm obviously off base, since it's not working: ExternalInterface.call("Shopwithme.Initialize",[{ "id":"prod1234", "type":"2","URL":"http://www.somelink.com"}]); What do I need to do to call this javascript?

MVC Switching Between Secure To Non - Secure Content
stackoverflow.com
After logging to the mvc site using a secure connection (https), calling actions using https connection show up with the user logged in but calling actions using http it bahaves as if user didn't log on. Since I need to use a virtual directory for https connections(and can't use that directory for http connection) Https links start with: [URL]

Page Contains Both Secure And Non Secure Items
stackoverflow.com
I'm working on a legacy web application - frames and a mixture of html, asp and aspx. The entire site is https. For some strange reason when I hit a specific page I get the magic message that says the Page contains both secure and nonsecure items. (IE obviously doesn't want to tell me what those resources are) I have checked the page that's being loaded and there are absolutely no http://... links - everything is relative links. I have fired up fiddler and checked what's being requested - everything looks fine. I am completely at wit's end here. I have absolutely no idea why I'm getting this message, but it's completely screwing with the site.

Web Forms :: Call A Code Behind Function Form Html Source Code?
forums.asp.net
I want to call a function present in code behind from front page (html : source code) i want to use like this: Source code <a href='<%# linkAlpha("B").ToString()) %>' title="B" id="B_List" runat = "server">B</a> Code Behind protected string linkAlpha(string value) { //  /market-research/<%#Eval("customname")%>/ string str = ""; if (Request.Url.DnsSafeHost == "localhost") {         // /market-reports/<%# Eval("customname")%>/ str = "Alpha_Category.aspx?q=" + value.ToString().Trim(); // Response.Redirect("Alpha_Category.aspx?q=" + value.ToString().Trim()); } else { //    str = "/market-reports/" + value.ToString().Trim() + "/"; str = "/Alpha_Category.aspx?q=" + value.ToString().Trim(); } return str; }

Call SQL Function With Multiple Parameters From C# Web Page?
stackoverflow.com
I have an MS SQL function that is called with the following syntax: SELECT Field1, COUNT(*) AS RecordCount FROM GetDecileTable('WHERE ClientID = 7 AND LocationName = ''Default'' ', 10) The first parameter passes a specific WHERE clause that is used by the function for one of the internal queries. When I call this function in the front-end C# page, I need to send parameter values for the individual fields inside of the WHERE clause (in this example, both the ClientID & LocationName fields) The current C# code looks like this: String SQLText = "SELECT Field1, COUNT(*) AS RecordCount FROM GetDecileTable('WHERE ClientID = @ClientID AND LocationName = @LocationName ',10)"; SqlCommand Cmd = new SqlCommand(SQLText, SqlConnection); Cmd.Parameters.Add("@ClientID", SqlDbType.Int).Value = 7; // Insert real ClientID Cmd.Parameters.Add("@LocationName", SqlDbType.NVarChar(20)).Value = "Default"; // Real code uses Location Name from user input SqlDataReader reader = Cmd.ExecuteReader(); When I do this, I get the following code from SQL profiler: exec sp_executesql N'SELECT Field1, COUNT(*) as RecordCount FROM GetDecileTable (''WHERE ClientID = @ClientID AND LocationName = @LocationName '',10)', N'@ClientID int,@LocationID nvarchar(20)', @ClientID=7,@LocationName=N'Default' When this executes, SQL throws an error that it cannot parse past the first mention of @ClientID stating that the Scalar Variable @ClientID must be defined. If I modify the code to declare the variables first (see below), then I receive an error at the second mention of @ClientID that the variable already exists. exec sp_executesql N'DECLARE @ClientID int; DECLARE @LocationName nvarchar(20); SELECT Field1, COUNT(*) as RecordCount FROM GetDecileTable (''WHERE ClientID = @ClientID AND LocationName = @LocationName '',10)', N'@ClientID int,@LocationName nvarchar(20)', @ClientID=7,@LocationName=N'Default' I know that this method of adding parameters and calling SQL code from C# works well when I am selecting data from tables, but I am not sure how to embed parameters inside of the ' quote marks for the embedded WHERE clause being passed to the function.

.net - Httphandler Doesn't Engage For Non-home Pages
stackoverflow.com
I have an MVC2 application, and HttpHandler Library. The library, to simplify, serves an image. The problem is that if I invoke this handler from the root page ( http://whatever/ ), everything works fine. If, however, I change the Global.asax, so the same page now has the address of http://whatever/controller/action - it doesn't work (ALT text comes out instead of image).I didn't write the handler library, but I have the code; so I put a breakpoint in ProcessRequest function of IHttpHandler implementation. For good situation the breakpoint gets triggered, but for bad case it isn't. So, I assume that the handler isn't invoked for non-root pages.

Get A Variable To Increment In A Function Called By SetInterval?
www.daniweb.com
I am trying to get a variable to increment in a function called by setInterval. It does one then stops... All I want is for the slider function to loop through the array over and over again, but it seems to like stopping after the first one. Here is the code: <script type='text/javascript'> var i = 0; function slider(varToSlide) { [Code]......

Identifying Elements That Call A Function - Change The Border Of Several Images On The Page To Show A...
www.codingforums.com
What I want to do is change the border of several images on the page to show a 4px border. There are many images on the page so I just want to call the changeborder() function on the onClick event so as the image that has been clicked changes. However, I don't think using this.style.border to identify the element works when placed within the function. That is, how do I identify, from the function, which image has been clicked? My current code (which does not work) looks like this but I am sure its possible to gather what i'm trying to achieve: <script type="text/javascript"> function changeborder() { this.style.border='4px solid red' } </script> <img style="border: 1px solid #F4F4F4;" onclick="changeborder()" src="images/colours/010.jpg" border="0">

Strtotime With Year In 2 Digit Non Standard Format
stackoverflow.com
can someone explain the behaviour of strtotime function with year in non-standard format. echo date("d-m-Y",strtotime('02-12-10')) .'<br>'; //10-12-2002 echo date("d-m-Y",strtotime('09.09.10')) .'<br>'; //02-09-2010 --How this is interpreted? echo date("d-m-Y",strtotime('02-12-2010')) .'<br>'; //02-02-2010 echo date("d-m-Y",strtotime('09.09.2010')) .'<br>'; //09-09-2010 I wanted to convert strings of format dd.mm.yy(09.09.10) to datetime format.

Json - Any Function That Will Strip Properties Of An Object That Are Null?
stackoverflow.com
I am returning a json_encode() of an array of objects pulled from an ORM. It includes lots of properties with a null value. What is the neatest way to remove these properties that are null? I guess I could iterate over the properties, look if they are null and then unset() that property, but surely there must be a more elegant way?

Fetch Cookie Set By Header?
stackoverflow.com
I login to a website and it returns a cookie via the header.The cookies name is fb_cookie. I try to read it with the below PHP code but it returns nothing. How can I fetch a cookie set via the header? echo $_COOKIE["fb_cookie"]; The response is this from the header (read by the Poster plugin in Firefox). fb_cookie=1554e662b9914b5d640d655f-627185705%7C6LneHfe-wWAworIG2hTHSzxuqkw.; path=/; expires=Thu, 07-Jul-2011 12:57:05 GMT _lambda_session=BAh7BzoMdXNlcl9pZGkBkToPc2Vzc2lvbl9pZCIlOGY2Y2U2ZDhlMDcyNTdjMDM4ZjYyNjQ4ZmU5OGU1ZTU%3D--3e60eb15a406a9320f7ab83fb7e0866198f4b6c7; path=/; HttpOnly

Simulate Event To Get Mouse Coordinates?
stackoverflow.com
I need to get mouse coordinate at the moment the setTimeout function calls the provided function.

Get Info About The File Originating A Function Call?
stackoverflow.com
Possible Duplicate: PHP: how do I know the caller of a function ? If I have a file named file1.php with the following code: // file1.php file2_func(); And then I have another file named file2.php with the following code: // file2.php function file2_func() { // define info about the file calling me } If I call the function file2_func() from code written in file1.php, is there any way for file2_func() to be aware of that. Specifically I want do define a variable within file2_func() that stores the file path of file1.php.

Jquery :: Fetching Blank Value From Input Field
stackoverflow.com
I have a form where it have 2 input and 1 texatarea, when a user submit the form the default behavior of the form is stopped to make the way for ajax request. Here is the code I am using. $(document).ready(function(){ $('input#submit').click(function(){ $name = $('input#name').val(); alert($name); return false; }); }); And here is my html form <form action="" method="post" id="mail-form"> <label for="name">Name *</label><br/> <input type="text" name="name" id="name"/><br/> <label for="email">Email *</label><br/> <input type="text" name="email" id="email"/><br/> <label for="message">Message *</label><br/> <textarea id="message"></textarea> <input type="submit" name="submit" value="Send" id="submit"/> </form> When I click submit buttons it just displays blank value in alert box even if I enter some value in name field. Whereas if I use the following code for form. <input type="text" name="name" id="name" value="yourname"/> It display yourname in alert box properly. what is wrong with my code? ere is my whole index.html [URL] file, is there anything wrong with DOM?

Checking For Non Integer Values
phpbuilder.com
I currently have the following code which checks for a NULL value but I also need to ensure that the value is not an integer I was just wondering how to check for this? Code: if($Id == NULL || //need to check for non integer value)

Sorting Paired Array Non Case Sensitively
forums.devshed.com
DOes anybody know how I can sort a paired array of strings using the asort() function non case sensitively. I've tried using the asort($array, SORT_STRING) and SORT _REGULAR sort flags but they aren't working. At the moment, capital letters are taking preference over lower case letters and I need them sorted alphanumerically regardless of case.

Checking If An Argument In A Function Is Not Called?
www.phpfreaks.com
im creating a function that detects if the user is coming from an Iphone, Ipad or internet explorer. If i call the function browsercheck(iphone); i want it to specifically check if it is an iphone. And the same goes with Ipad and MSIE. That part of the script I have got to work. But what i want is that if the function is called just like browsercheck();  without an argument is automatically detects what the user agent is and then acts accordingly. The problem I have is writing the part of the code that looks if the variable $agent which is the argument is empty, and if so act upon that, and if its not empty, carry on with the rest of the function. Code: [Select]<?php /* This function is used for checking the user is coming from the correct platform, and if not it will redirect them */ function browsercheck ($agent) { $useragent = getenv("HTTP_USER_AGENT"); if (isset($agent)){ [Code]....

Deserializing JSON Into Byrefrence ParametrizedConstructor Object With Json?
stackoverflow.com
Below is my JSON formated String {"AliasName": "ysiCountryInfo", "DataClass": {"Description":"United States 111","Code":"usa","WriteOffTaxPointAdjustment":0,"IndexationRounding":6}} I would like to deserialize object into below class [code].....

Actionscript 3 :: Parse JSON Object To Custom Class Object In It?
stackoverflow.com
I want to parse JSON string to some my custom object in Action script 3. Is there some libs to do this.[code]...

Actionscript 3 :: Json - Counting Elements In JSON Array Which Is In An Object
stackoverflow.com
I have a pure ActionScript 3 problem, but the simplified test case I've prepared is in Flex 4 for better visibility (the source code is below): Since Flash Player 11 / AIR 3 support JSON natively, I've decided to move a multiplayer game, which used XML for communicating with server, to JSON. But I have a frustrating problem, that given two Objects like [Code]...

Report Created At Runtime To Link With Datareport Object
www.codeguru.com
I'm using datareport to show and print reports. The report is created at runtime in which I link to the datareport object. The problem is the creation time takes too long, it spends almost 5 minutes just to fill up the table. can anyone shed light to my problem?

Valid XML? And Using The XML Object
www.vbforums.com
I'm posting this here because later on I might need help using the XML object to parse this file. For now, I just want to know if this is valid structure of XML. I never use XML anywhere in my programs but now I'm going to.I don't know if the [ highlight ] [ /highlight ] things support XML so you may just want to copy/paste it somewhere so you can read it better.skin.xmlCode:<?xml version="1.0" encoding="utf-8" ?><skin> <name>MyChat Blue</name> <version>1.0.0b</version> <author>Danny Elkins</author> <date>2007-09-06</date> <keywords>mychat,blue,default</keywords> <colors>blue</colors> <active_image>skin_active.bmp</active_image> <inactive_image>skin_inactive.bmp</inactive_image> <top_left> <left>0</left> <top>0</top> <right>10</right> <bottom>31</bottom> </top_left> <caption> <left>11</left> <top>31</top> <right>12</right> <bottom>31</bottom> </caption> <minimize> <left>234</left> <top>5</top> <right>255</right> <bottom>26</bottom> </minimize> <restore> <left>259</left> <top>5</top> <right>280</right> <bottom>26</bottom> </restore> <maximize> <left>259</left> <top>5</top> <right>280</right> <bottom>26</bottom> </maximize> <close> <left>284</left> <top>5</top> <right>305</right> <bottom>26</bottom> </close> <left_border> <left>0</left> <top>32</top> <right>5</right> <bottom>33</bottom> </left_border> <bottom_left> <left>0</left> <top>369</top> <right>10</right> <bottom>379</bottom> </bottom_left> <bottom_border> <left>12</left> <top>374</top> <right>13</right> <bottom>379</bottom> </bottom_border> <bottom_right> <left>299</left> <top>359</top> <right>319</right> <bottom>379</bottom> </bottom_right> <right_border> <left>314</left> <top>355</top> <right>319</right> <bottom>356</bottom> </right_border> <top_right> <left>309</left> <top>0</top> <right>319</right> <bottom>31</bottom> </top_right></skin>And 2nd, what's the name of the reference in VB to use the XML object? And is there a tutorial on the net for using that object to parse XML documents?

.net - Deserialize JSON Into An Object?
stackoverflow.com
I'm having an issue with getting some of the values from with this json string: { "kind": "shopping#products", "etag": ""YZWJaKE3MHROIW8rCIlu9mAACLM/6qxBB-GwuSPy5L3_zVS6sS2NYFI"", "id": "tag:google.com,2010:shopping/products", "selfLink": "https://www.googleapis.com/shopping/search/v1/public/products?country=US& [code]....

Could Not Deserialize JSON Object?
stackoverflow.com
We are trying to consume WCF service which returns employee details in JSON Format.like: {"d":[{"_type":"Employee:#","BigThumbNailURI":null,"ID":1,"Name":"E1"},{"_type":"Employee:#","BigThumbNailURI":null,"ID":2,"Name":"E1"}]} From VB.net code behind when I am trying to deserialize it it's stating that "Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''."

Deserialize JSON To LINQ Object?
stackoverflow.com
In VB.Net class, I have a JSON data as string. I want to convert them to LINQ class Object.[code]....

Deserialize A Simple JSON Array To .NET Objects?
stackoverflow.com
I am attempting to deserialize a simple JSON array to .NET objects using the JSON.NET library in visual basic. For the life of me, I cannot figure out what I am doing wrong here. My JSON string deserializes into appropriate objects (9 in total), but none of the properties are populated. My code: Public Class result Public Property id As Integer Public Property vote_percentage As String [Code].... When using JSON.NET you have to have constructor methods (i.e. Sub New) in order for the properties to get set during the Deserialization call.

SQL Query Two Tables At Once And Loop Result As JSON Objects
stackoverflow.com
I have a MySQL database with a table called "Locations" which looks a bit like this id | name | other parameters 1 | shop1 | blah 2 | shop2 | blah [Code].... This works, but it is inefficient calling the database through the loop, how do I avoid this?

Send Resposne Using Json Object?
stackoverflow.com
I am working on a project in which a server page is called through XMLHttp and now i want to retrieve response the called page in json object.and i never used json

Passing A JSON Object As A Dictionary(Of String, Object) To WCF Web Service?
stackoverflow.com
I'm trying to setup a WCF web service to be consumed by JavaScript using JSON and jQuery.I've noticed that you can send JSON without a DataContract if the service method parameters match the naming structure of the JSON object: <ServiceContract(Namespace:="http://foo.com/bar")> <AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)> [code]....

How To Get / Evaluate Object From Json String
stackoverflow.com
[code] please help me how to get and/or evaluate object from this json string with VB.Net.

Javascript - Accessing Elements Of JSON Object Without Knowing The Key Names
stackoverflow.com
Here's my json: {"d":{"key1":"value1", "key2":"value2"}} Is there any way of accessing the keys and values (in javascript) in this array without knowing what the keys are? The reason my json is structured like this is that the webmethod that I'm calling via jquery is returning a dictionary. If it's impossible to work with the above, what do I need to change about the way I'm returning the data? Here's an outline of my webmethod: <WebMethod()> _ Public Function Foo(ByVal Input As String) As Dictionary(Of String, String) Dim Results As New Dictionary(Of String, String) [Code]....

Actionscript 3 :: Unable To Assign JSON Decoded Object As DataProvider
stackoverflow.com
I am trying to use JSON decoded as a dataProvider, but no matter what I try I get errors such as the following: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayCollection@2a88ae01 to fl.data.DataProvider. [Code]...

Actionscript :: Custom Object Does Not Fully Encode Into JSON Object?
stackoverflow.com
I have the following class: public class PartBean extends DatabaseObjectBean{ [Bindable] public var partNumber:String; [Code].... I end up with this string: {"description":"Test","partNumber":"-1"} I am not sure why the array is not being encoded as well.

Flash :: Cast A Display Object To Custom Class Object?
stackoverflow.com
How can i cast a object to another type? in AS3 i tried putting (objectType) infront of the variable but it doesnt work, below i have added objects of fishes into the child, and i am getting the fishes back out when mouse down is triggered, and then calling the fishes what to do. however i cant call the method of the custom class fish because it is a displayobject.[code]...

ActionScript 3.0 :: Create A Custom Class As Object?
board.flashkit.com
I have written a Class for skinning the UI. The Class works by taking a movie clip name from the stage passed to it and create the skin for it.So I create an Object from the class such as this: Code: var CBox:UI = new UI(); Now what I wanted to do is reference a movie clip from the stage to this CBox variable, so when a call the Class methods it will know which movie clip to work on! Since currently I have to do this: Code: CBox.Skinning(content_mc, "content", 100, 200); or CBox.Over(content_mc); As you can see Im passing the movie clip, content_mc, everytime. I just want to avoid this by creating a reference.

ActionScript 3.0 :: Movieclip To Custom Class Object?
forums.adobe.com
I created one "MyObject" class which is extended from Movieclip. In my flash stage, i have one movieclip and the name is "myObj". I dont use linkage. How can i convert movieclip to MyObject instance.i tried the below one, i got errorar str = MyObject(mc).name;The error is TypeError: Error #1034: Type Coercion failed: cannot convert ash.display::MovieClip@2b6baf99 to MyObject. at Obj_fla::MainTimeline/frame1()

ActionScript 2.0 :: Adding Custom Class To Object?
www.kirupa.com
For the game I am making, I'm using a self-made sprite managing system.I've got three classes: SpritesManager, SpriteGroup extends Movieclip and Sprite extends Movieclip.The idea is: SpritesManager is holding an object: "mainSprites", SpritesManager also hasa method "newGroup", wich creates a new SpriteGroup in mainSprites.In this way I want to make a system for creating and managing some sort of Movieclip-tree.For example:mainSprites.enemies.badEnemyThe method newGroup in SpritesManager has a param "name" wich is the name of the SpriteGroup to create.Here's where I'm stuck: how do I create a new SpriteGroup referenced to as "name" in mainSprites?

ActionScript 2.0 :: Adding Custom Class To Object
www.kirupa.com
For the game I am making, I'm using a self-made sprite managing system. I've got three classes: SpritesManager, SpriteGroup extends Movieclip and Sprite extends Movieclip. The idea is: SpritesManager is holding an object: "mainSprites", SpritesManager also has a method "newGroup", wich creates a new SpriteGroup in mainSprites. In this way I want to make a system for creating and managing some sort of Movieclip-tree. For example: mainSprites.enemies.badEnemy The method newGroup in SpritesManager has a param "name" which is the name of the SpriteGroup to create. How do I create a new SpriteGroup referenced to as "name" in mainSprites?

Flex :: Casting Object From ArrayCollection To Instance Of Custom Class
stackoverflow.com
I am using Flex 4 and for whatever reason I cannot get the following code to work which happens inside of a ListEvent handler for a dataGrid: _tempRule = DataGrid(event.currentTarget).selectedItem as Rule; Rule is a custom class, and the above code always returns null. The dataprovider for the datagrid is an ArrayCollection. If I try to wrap the above code to make it like the following: DataGrid(event.currentTarget).selectedItem as Rule I get this error: TypeError: Error #1034: Type Coercion failed: cannot convert Object@e15a971 to com.mycompany.arcc.business.Rule Now I know I have done this before with native Flex classes like Button, etc, but it my case it will not work. Here is the Rule class: package com.mycompaany.arcc.business { import flash.utils.describeType; import mx.collections.ArrayCollection; [Code] .....

Actionscript 3 :: Custom Object To ByteArray Then To Custom Object?
stackoverflow.com
Having problem reading bytearray of custom objects. public class CustomObject extends Object { public function CustomObject() { public var _x:Number = 100 [Code]....

ActionScript 3.0 :: Listening For Custom Event Dispatched From Parent Object In Child Object?
www.actionscript.org
I want to listen for a custom event dispatched from the document class in a custom subclass. For example, let's say in the document class I have: ActionScript Code:[code].... So that the subclass will trace 'Event from document class received' when the 'customEvent' event from the document class is listened by the eventlistener. However, the output is only 'customEvent dispatched', meaning it wasn't heard in the subclass.

Actionscript 3 :: Loading Swf As Custom Class That Extends MovieClip - Getting Null Object Reference
stackoverflow.com
I followed the example from a previous question and I am loading an external swf using a loader and inside the loader event handler I am trying to cast the loader.content as my custom class PanelReferenceClip which extends MovieClip When I publish I receive a this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. Just to make sure and test that the swf location was correct and the swf was actually being loaded, I changed the type of the content to as MovieClip and it worked fine. EDIT: I also wanted to add that these swfs are being stored locally and not being pulled across the internet, multiple networks or servers. I am not sure if I did something quirky in my class so I am providing the source to my custom class PanelReferenceClip package com.components { import com.UI.DevicePanel; import flash.display.MovieClip; [Code]....

ActionScript 3 :: Evaluating String From JSON As Object
stackoverflow.com
I have a json object where I don't know some of the values at compile time, but I do know that all objects will be valid at runtime. So in the example below, the first trace will output "50" and I want the second trace to output "100", the value of someObject.someparam, which gets defined at runtime. var plan:Object = { "testParam": 50, "testParam2": "someObject.someParam" } var someObject:Object = {"someParam": 100}// this actually doesn't get defined until runtime trace ("testParam " + plan.testParam); trace ("testParam2 " + someSortOfInterpreter(plan.testParam2);

Python :: Serializing And Deserializing Object With JSON?
stackoverflow.com
Is there a way or a library made to deserialize a JSON string into a typed object in ActionScript and Python? For eg. class Person { String name; [code].... So, the last statement basically casts the object we get after deserializing the jsonString into the Person object.

ActionScript 3.0 :: Get JSON Object In Original Order?
www.actionscript.org
I'm getting a large JSON string and decoding it into an object which i loop through to build an interface.

ActionScript 3.0 :: Get JSON Object In Correct Order?
www.kirupa.com
I'm getting a large JSON string and decoding it into an object, i'm looping through this object to create the interface. The problem is it seems to build the interface in a random order, is this because actionscript 3 loops through the properties of the object randomly?

Actionscript 3 :: Populate New MovieClip() With JSON Object Properties
stackoverflow.com
I have saved out an object using JSON.encode to a text file, is it possible to then create a new MovieClip and populate it with all of the properties from the saved file? If so how would it be done, or is there a better way

ActionScript 2.0 :: Color Object Prototyping?
www.kirupa.com
i've been using a MovieClip prototype to create and set a color object, like this: MovieClip.prototype.setRGB=function(hex){ (new Color(this)).setRGB(hex); //creates color object + sets color } which makes it easy to change a MC's color like this: MC.setRGB(0x00ff00); now i'm working in AS 2.0, which seems to discourage using prototyping and extending the MC class methods--so my question is, what is the best approach for doing this in AS 2? i've created a new class to handle it, but it seems clunky to have to call an instance rather than having a MC call an internal method...the bottom line, is: is it ok to extend the MovieClip class in AS2, and if not, what's the cleanest approach?

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0
www.webhostingtalk.com
Rapidly growing error logs showing the same message $ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0 root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ./ ../ eaccelerator.so* root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ./ ../ eaccelerator.so* Using cpanel 11 / centos 4

MVC :: Action Method Taking Model Object?
forums.asp.net
I've an action method like the below: [HTTPPost] public void Edit(Movie movie) { } Movie has fields Id, Name. View is displaying name only in textbox. When button is clicked, the above action method's movie is populates with the updated name value but Id is 0, actually that record's id is 4. Thatswhy my updating of record is not working. Why MVC is putting 0 into id?

MVC :: Get The Object Of HTTPRequest - Logon User Details
forums.asp.net
Anyway I can get the object of HTTPRequest? From View or Action? What I want is to read the logon user name and its email address from active directory.

Configuration :: DLL Failure Causing "Object Reference Not Set To An Instance Of An Object." - How To...
forums.asp.net
i don't know how far I'm going to get with this considering that I'm pulling together this API for a payment gateway that's isn't very well supported by the developers who supplied it, but... I'm getting an "Object reference not set to an instance of an object" error on this:         ' Put user code to initialize the page here

JQuery :: Adding A Highlight Animation When Hovering A Sortable Object Over A Droppable Object?
stackoverflow.com
I have a list of objects called projects that are sortable, and a list of objects called categories that are droppable. I need to somehow make it so that when you click on a sortable project, and drag it down so it is hovering over a droppable category, the category that the project is going to go into is highlighted, or outlined or some other kind of animation. I am sure that it could be done by something as simple as an add-class-on-hover-over-droppable-object type function, but I don't know how it is supposed to be setup. Looking through some of the jQuery documentation, I found out that for a droppable object, you can set an over: function(), attribute, but I couldn't get it to work...