Recordset error
Whenever I try to create a recordset I get an error, i
reinstalled still
there:
"While executing applyServerBehaivor in Recordset.htm, a
Javaqscript error
occurred."
Any ideas ? I cant work !!!
Aleks
Aleks wrote:
> Whenever I try to create a recordset I get an error, i
reinstalled still
> there:
>
> "While executing applyServerBehaivor in Recordset.htm, a
Javaqscript error
> occurred."
http://www.adobe.com/go/tn_19105
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Similar Messages
-
Hi new poster here. Quick history of the issues I'm having. I was running CF 8 64bit with Vista and had the MS Access driver issue. SO I downloaded CF 9 32 bit version and can now define my datasource for an Access database. No problems there now so that's good. Now when I go and define a recordset for a select query, I add several records to the Select statement and for some reason a particular record I add, CF always puts this record name in parenthesis. i.e. "Size" My database did not have the parenthesis included, but CF adds them just on this record name. With CF 8 it didn't seem to be a problem, but now with version 9 it throws up an error message: adojni.ComException: invalid use of '.','!', or '()'. in a query expression tblSwimwear."Size" in Microsoft JET database engine code 3092
I know this is a lot to digest, but I'm very confused as to what's going on here. Again CF 8 had no problem with the " " around Size. I can even go and remove the parenthesis around Size before I test the select query, and still get the error. If I leave out the Size record, I get no errors.
I will add this so I make sure ';m covering all the bases, but when I defined my datasource, I had to use Microsoft Access Unicode as my driver. Don't know if that would make a difference, but still letting anyone who may can help know. Thanks in advance!teedoffnewbie wrote:
I am using Dreamweaver cs3 to build CFM templates
. I use the recordset wizard to build my query.
Again when I did the same thing using CF 8, CF 8 also "put" the quotation marks around the word Size(my DB record name) as well, but it was never a problem. In CF 8 I could either leave the quotes around the word, or if I wanted to, take them out. Either way worked with CF 8. CF 9 however doesn't let me do either one. It automatically, for some reason puts " " around Size and gives the error. When I remove the quote marks I still get the same error.
Again sorry if I am not clear enough, I just started learning CF about 2 months ago.
In response to the next poster, I cannot post my code since it wont let me finish defining the query.
Using dreamweaver and using the developer edition of the CF server running locally on my machine. also can upload the cf templates to my schools web server running CF as well.
OK, so first advice is if you're trying to learn CF: stop using all the wizards and what not, and code your templates by hand. You will never get anywhere if you rely on the code that DW generates, and if it's anything like it used to be last time I used it, the code it generates is rubbish anyhow, so it's a very poor CF tutor.
Secondly, if you say you can't post your code because it "won't let you finish defining the query" (in the DW query wizard, yes?) then that's a DW problem, not a CF problem. Anyhow, there's nothing to stop you NOT using that wizard and just coding the SQL by hand (which you should be doing if you're a learner anyhow, IMO).
Adam -
RecordSet error in Dreamweaver CC
Hi!
Sorry for my bad english.
I have problem with Dreamweaver CC. (Mavericks OS)
Database extension is OK. The tables appears correctly.
The problem is with the Binding.
I connected to a database I created in phpMyAdmin, then i tried to create a recordSet for my application then i get this error.
"While executing addDynamicSource in Recordset.htm, a JavaScript error occured."
What can i do?Thanks. I have yet read the instructions.
When i go to the link : Mac OS X: Macintosh HD:<username>:Library:Application Support:Adobe, I look for "Dreamweaver" and I don't find it.
So i must go this link : Mac OS X: Macintosh HD:<username>:Library:Application Support:Adobe, Startup Scripts CC, Dreamweaver, dreamweaver-13,dreamweaver-11.0_fr_FR.dat.
Is it OK? -
Recordset error DW CS4 (URGENT)
When I press the + sign then Recordset in the Server Behaviors Panel I get this error: (actually anywhere in DW I try to create or modify a Recordset I get this error).
http://img193.imageshack.us/img193/2941/errorbfs.jpg
Help Please! How do I fix this?
FOUND 2 SOLUTIONS:
1. First one deleting the Dreamweaver cache file. That didn't work!
2. Second was renaming the entire Dreamweaver configuration file so that Dreamweaver can create another one (or so I've read). Now it works but my extensions are obviously gone! (I suspected one of the 2 extensions I installed yesterday have smth to do with this error, but the extensions worked great can't really complain about them)
So I HAVE OTHER QUESTIONS NOW:
It is ok to leave it like that with the new configuration file? Will Dreamweaver work with its full features?Hi David. Thank you for your reply to the problem that the original poster and I are having with Dreamweaver CS4. Unfortunately deleting the File Cache did not repair the problem. I am currenty running Windows 7 Retail and have even changed the Compatibility Mode for Dreamweaver to that of Windows Vista SP2. I have also tested with no extra extensions installed and still get the problem. I have used CS4 for over a year and have never seen this problem until I loaded Windows 7.
The original poster was using a Mac from the screenshot and was getting the same problem. I know that Dreamweaver uses javascript. Do you think that this could be part of the problem? The program seems to be working file, but you get this error message everytime you use any server behavior. It's odd. I will look for updates for the application. Any suggestions you may have would be appreciated. Thank you for your time.
Leo McKenzie -
CREATING A RECORDSET ERROR "UNIDENTIFED ERROR HAS OCURRED
I am trying to create a record set which is for a mysql database containing images and details about the images.
When using the Create RecordsSet in Dreamweaver CS4 I get this error whenever I include the filed which holds the image data.
Mysql Database is as follows
CREATE TABLE IF NOT EXISTS `phpriot_demo`.`images` (
`image_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT ,
`filename` VARCHAR(255) NOT NULL ,
`mime_type` VARCHAR(255) NOT NULL ,
`file_size` INT(11) NOT NULL ,
`file_data` LONGBLOB NOT NULL ,
PRIMARY KEY (`image_id`) ,
UNIQUE INDEX `image_id` (`image_id` ASC) ,
INDEX `filename` (`filename` ASC) )
ENGINE = MyISAM
AUTO_INCREMENT = 2
DEFAULT CHARACTER SET = latin1
It doesn't throw up an error with any of the other fields? Is there something I am doing wrong?Horsemad Gilly wrote:
I had looked at the arguments and had gone with this option but cant get the images to display back in the webpage, I am having problems in understanding the proxy script correct to enable the image to show,
I agree with Murray that storing images in a database is a bad idea, but if you really want to do it, you can find instructions here: http://cookbooks.adobe.com/post_Upload_images_to_a_MySQL_database__PHP_-16609.html. Dreamweaver doesn't handle file uploads automatically, so you need to edit the script manually.
You can also learn how to display an image using a proxy script in this article: http://cookbooks.adobe.com/post_Display_an_image_stored_in_a_database__PHP_-16637.html. -
When I create a recordset in php it creats a function
GetSQLValueString, which I assume is normal, the problem occurs
when I want to edit that Recordset every time I do it recreates
that function so then I have 2 and so on and so forth.
Deleting the extra functions fixes the problem but it's
really starting to annoy me and I was wondering if this has happen
to any one else and if there was a patch or fix for this?
Thanks"northpawjustice" <[email protected]> wrote
in message
news:e61l7s$pni$[email protected]..
> When I create a recordset in php it creats a function
GetSQLValueString,
> which
> I assume is normal, the problem occurs when I want to
edit that Recordset
> every
> time I do it recreates that function so then I have 2
and so on and so
> forth.
> Deleting the extra functions fixes the problem but it's
really starting to
> annoy me and I was wondering if this has happen to any
one else and if
> there
> was a patch or fix for this?
Unfortunately, this is the patch. It has a lot of problems.
Other problems
with this function: Dreamweaver adds it whether it's needed
or not, and DW
adds it for every parameter whether you want to use it or
not. It also
prevents the use of dynamic SQL and dynamic sorting.
Tom -
General project information
Using Captivate 5.5 to create quizzes.
Publishing to SCORM 1.2
Report Data: Quiz results and Slide Views
Reporting Level: Interactions and Score
I have changed the Interaction ID to text corresponding with the question rather that a seemingly random number.
The issue – When trying to view the details in our LMS the following error appears.
ERROR
clsOLEDB:openRecordset() : Conversion failed when converting the varchar value 'TCBYOTheft' to data type int.
ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
/reports/reportViewer.asp, line 1724
Note: I beleive "TCBYOTheft" is the interaction ID of the first (randomized) question slide.
Any help would be appreciated.The Interaction ID doesn't necessarily have to be an integer. It just needs to be unique across the entire course. I've never seen an LMS that demanded an integer for this ID. I think your error might be due to the LMS encountering two interactions with the same ID.
Captivate will track and ensure that the Interaction IDs are unique for all scored interactions in a given project file. But it obviously can't know about the interactions that might exist in another project file that you might happen to bundle up with this one as part of a multi-SCORM packaged course. A randomly-generated integer is a good start, but for even greater insurance of uniqueness across larger multi-module courses, you need to go further.
The problem is that many authors use Captivate templates as a way to initialise course modules and if (like me) you have the quiz questions already set up ready to go in these templates so that you save formatting time, then the Interaction IDs are already allocated in the template, and will be inherited by the projects spawned from these templates. This can mean that more than one module in the course could potentially have an interaction with the same ID.
To get around this, Captivate provides a Quiz Setting for an Interaction ID Prefix so that you can tag all interactions in a project file as belonging to the same module.
So, if you KNOW that your project file will be part of a larger multi-module course, you can make sure each module's interactions are still unique by appending the prefix.
It's always a good idea once you've created your modules to go to Project > Advanced Interaction dialog and just make sure that all scored Interactions have the prefix. -
I can no longer access a page online from a site I go to often. I get error 800a0bcd everytime I reload the page.
I have uninstalled and reinstalled the latest flash player and still no luck.
The entire message reads;
ADODB.Recordset error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/standardincludes/FAFunctions.asp, line 3703
I have no idea what any of that means. Could anyone help or is this a professional issue?
Thanks,
SLIf you are behind a proxy server that requires authentication
login this can happen. Your proxy server isn’t allowing the
player download to authenticate.
You might be able to get around it by going to this URL to
download:
http://www.adobe.com/go/getflashplayer.
Sometimes you have to get your IT to open up the proxy.
And finaly, if you're on an intranet then you can get your
company to get a free license to distribute Flash Player inside the
network at
http:///www.adobe.com/licensing/ -
AvAudioRecorder, create corrupted file on random check
Hello,
I face issue with AvAudioRecorder, create corrupted file on random check.
below is complete functionality code.
-(IBAction)btnRecordClick:(id)sender {
[PlayingTimer invalidate];
PlayingTimer = nil;
if (isPaused==NO) {
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *err = nil;
[audioSession setCategory :AVAudioSessionCategoryPlayAndRecord error:&err];
if(err){
// NSLog(@"audioSession: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
return;
[audioSession setActive:YES error:&err];
err = nil;
if(err){
// NSLog(@"audioSession: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
return;
//*******Working well with .wav,.caf and .mp4 files *****************
recordSetting = [[NSMutableDictionary alloc] init];
//this is for .wav and .caf file
//this is for .mp4 file for iPhone 3GS/iPhone 4
[recordSetting setValue: [NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey:AVFormatIDKey];
[recordSetting setValue: [NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
[recordSetting setValue: [NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
[recordSetting setValue:[NSNumber numberWithInt:16] forKey:AVLinearPCMBitDepthKey];
[recordSetting setValue:[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey];
[recordSetting setValue:[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey];
self.strMessage = @"";
self.strMessageType = [NSString stringWithFormat:@"Audio Message"];
self.strFileName = [NSString stringWithFormat:@"%@.mp4", [_globalmodel stringUniqueID]];
// NSLog(@"FileName :%@",self.strFileName);
self.strUniqueRef = [NSString stringWithFormat:@"%@",[_globalmodel stringUniqueID]];
NSString *soundPath;//=[NSString alloc];
soundPath = [NSString stringWithFormat:@"%@/%@", DOCUMENTS_FOLDER,self.strFileName] ;
NSURL *url1 = [NSURL fileURLWithPath:soundPath];
// NSLog(@"Recording Path:%@",url1);
err = nil;
recorder = [[ AVAudioRecorder alloc] initWithURL:url1 settings:recordSetting error:&err];
if(!recorder){
// NSLog(@"recorder: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
UIAlertView *alert =[[UIAlertView alloc] initWithTitle: @"My Easy Media"
message: @"The Recording format is not supported on your device!"
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[alert release];
return;
//prepare to record
[recorder setDelegate:self];
[recorder prepareToRecord];
recorder.meteringEnabled = YES;
BOOL audioHWAvailable = audioSession.inputIsAvailable;
if (! audioHWAvailable) {
UIAlertView *cantRecordAlert =
[[UIAlertView alloc] initWithTitle: @"Warning"
message: @"Audio input hardware not available"
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[cantRecordAlert show];
[cantRecordAlert release];
return;
// start recording
[recorder record];
_isRecordingStarted = YES;
// SET TIMER // START TIMER
timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(EndRecording:)
userInfo:nil repeats:YES];
// END TO SETTING TIMER
timerDisplayRight.hidden = NO;
timerDisplayLeft.hidden = NO;
timerDisplayRight.text = [NSString stringWithFormat:@"%02d:%02d", intMimute,-- intSecond];
timerDisplayLeft.text = [NSString stringWithFormat:@"00:00"];
progressView.progress = 0.0;
else {
isPaused=NO;
[recorder record];
_isRecordingStarted = YES;
[btnReview setEnabled:NO];
timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(EndRecording:)
userInfo:nil repeats:YES];
timerDisplayRight.hidden = NO;
timerDisplayLeft.hidden = NO;
timerDisplayRight.text = [NSString stringWithFormat:@"%02d:%02d", intMimute,-- intSecond];
-(IBAction)btnPauseClick:(id)sender {
// NSLog(@"Pause Button of ActionSheet Clicked");
[timer invalidate];
timer = nil;
isPaused=YES;
[recorder pause];
[btnPause setEnabled:NO];
[btnRecord setEnabled:YES];
[btnStop setEnabled:YES];
-(IBAction)btnStopClick:(id)sender {
// NSLog(@"Stop Button of ActionSheet Clicked");
[recorder stop];
progressView.progress = 1.0;
// NSLog(@"Total Recording Secomd : %d", totalRecordingSecond);
finalRecordingSecond = totalRecordingSecond;
[btnStop setEnabled:NO];
[btnReview setEnabled:YES];
[btnRecord setEnabled:YES];
[btnPause setEnabled:NO];
timerDisplayRight.text = [NSString stringWithFormat:@"%02d:%02d", (totalRecordingSecond/60), (totalRecordingSecond % 60) ];
timerDisplayLeft.text = [NSString stringWithFormat:@"00:00"];
[timer invalidate];
timer = nil;
// REINITIALIZE TIMER VARIABLES...
intMimute = 5;
intTotalTime = (60 * intMimute);
intSecond = intTotalTime / intMimute;
intMimute--;
// REINITIALIZE TIMER VARIABLES...
_isRecordingStarted = NO;
Please help.
once we start recored and after near about 10 to 15 second, tap on stop.
It create file with length 24kb, which is not occured all time, but randomly found file is courrupted.I've been having the same problem for over a week for the Yankees @ Red Sox MLB's games of the year. I've reported the problem to apple by logging into my account in iTunes > purchase history > report problem. I know of several other people who have the same problems.
-
Hi all,
I'm trying to put a dropdown menu with the choices of All, 1,
2, or 3 to query a recordset and if I select 1, 2, or 3 seperately
it works fine but if I choose all I get an empty recordset
error....here is my code for the dropdown:
<select name="selectshift" id="selectshift">
<option value=LIKE' %'>All</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
I also tried
<select name="selectshift" id="selectshift">
<option value="LIKE'%'">All</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
but that doesn't work either.
Any help on this would be appreciated.
Thanks,
LennyLeave the All option empty like this
<option value="">All</option>
That way when it is passed to the results page the DW should
default to your
default code
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"Lenny@ford" <[email protected]> wrote in
message
news:e7f28t$iv$[email protected]..
> Hi all,
> I'm trying to put a dropdown menu with the choices of
All, 1, 2, or 3 to
> query
> a recordset and if I select 1, 2, or 3 seperately it
works fine but if I
> choose
> all I get an empty recordset error....here is my code
for the dropdown:
> <select name="selectshift" id="selectshift">
> <option value=LIKE' %'>All</option>
> <option value="1">1</option>
> <option value="2">2</option>
> <option value="3">3</option>
> </select>
> I also tried
> <select name="selectshift" id="selectshift">
> <option value="LIKE'%'">All</option>
> <option value="1">1</option>
> <option value="2">2</option>
> <option value="3">3</option>
> </select>
> but that doesn't work either.
> Any help on this would be appreciated.
>
> Thanks,
> Lenny
> -
Get SQL Server default data path via ADO/C++?
Hi,
I am trying to get the SQL Server default data path via ADO/Visual C++.
I find the SQL statements that will do that in
http://stackoverflow.com/questions/1883071/how-do-i-find-the-data-directory-for-a-sql-server-instance/12756990#12756990
So I just concat all the statements above into a CString object strStatements, then try to open a recordset as follows:
_RecordsetPtr m_pRecordset;
m_pRecordset.CreateInstance(__uuidof(Recordset));
m_pRecordset->Open(_bstrt(strStatements), _variant_t((IDispath *)m_pConnection, true), adOpenDymanic, adLockOptimistic, 0);
m_pRecordset->MoveFirst();
The last MoveFirst statement will cause com_error, which said
“ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
It seems that there are no data in the recordset at all. What is the problem?
ThanksHello,
Which query statement did you used to get the database data and log file path? Can you get the result by run the query directly with SQL Server Management Studio? For example,
SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf', LOWER(physical_name)) - 1)
FROM master.sys.master_files
WHERE database_id = 1 AND file_id = 1
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Hi, I am able to update records with forms. I now need to update records without the use of forms but keep getting stuck. Your help is very much appreciated. I don't think dreamweaver supports this, so I started adapting my code as as follows:
<%
Dim rsRespondents
Dim rsRespondents_numRows
Set rsRespondents = Server.CreateObject("ADODB.Recordset")
rsRespondents.ActiveConnection = MM_CHRdsn_STRING
rsRespondents.Update="SurveyEmployees SET FirstName='Changed' WHERE EmployeeID='17'"
rsRespondents.CursorType = 0
rsRespondents.CursorLocation = 2
rsRespondents.LockType = 1
rsRespondents.Open()
rsRespondents_numRows = 0
rsRespondents.Connection.Execute
%>
I get the following error:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/chr_cms/CHROTupdatewithoutform1.asp, line 19 <-- this is the line starting with rsRespondents.Update
I have also used rsRespondents.Update="UPDATE SurveyEmployees .......
but same error message
What am I doing wrong here ?
[Thread moved by moderator to correct forum]I've never seen the update method used that way - are you sure it's valid? Typically, you would select the record you want to modify into the recordset, change it, and then call the update method. Or, you can specify the fields and values you want to update as arguments to the method. But I've never seen it include an actual update statement.
http://msdn.microsoft.com/en-us/library/ms676529(VS.85).aspx -
Buen dia, he provado una paginacion muy sencilla que he
conseguido con el
maravilloso GOOGLE en una pagina con codigos ASP, me funciona
perfecto con
ACCES pero con MYSQL me manda error en esta linea:
RS_AUTOMOVILES.AbsolutePage = pagina_actual
El Error es:
ADODB.Recordset error '800a0cb3' Current Recordset does not
support
bookmarks. This may be a limitation of the provider or of the
selected
cursortype.
/autos/DIS_LISTA_AUTOS_MY.asp, line 96
¿Alguien podria orientarme al respecto?
Muchas gracias.De todos modos, te recomiendo que te actualizes a asp.net,
puedes encontrar
videos y un montón de información útil en
http://www.asp.net/getstarted/default.aspx?tabid=61
- es orientado a objetos
- es compilado (no interpretado como asp o php)
- separa totalmente la capa presentación de la de
programación (sin includes
ni marranadas por el estilo)
- geniales controles (por ejemplo lleva una GRID como la que
tu usas, que
incluye paginación automática , ordenación,
edición, eliminación y adición
de registros con 0 líneas de código.
- lo desarrolla la empresa tecnológica con más
recursos económicos y humanos
del universo conocido
Hay muchas otras ventajas, pero como digo, una de las mayores
es que puedes
desarrollar (si quieres) un sitio web dinámico con
acceso a datos sin
escribir NADA de código.
Saludos,
Xus
"Marcos Galaviz" <[email protected]>
escribió en el mensaje
news:elk6on$t8h$[email protected]..
> Buen dia, he provado una paginacion muy sencilla que he
conseguido con el
> maravilloso GOOGLE en una pagina con codigos ASP, me
funciona perfecto con
> ACCES pero con MYSQL me manda error en esta linea:
>
> RS_AUTOMOVILES.AbsolutePage = pagina_actual
>
> El Error es:
>
> ADODB.Recordset error '800a0cb3' Current Recordset does
not support
> bookmarks. This may be a limitation of the provider or
of the selected
> cursortype.
>
> /autos/DIS_LISTA_AUTOS_MY.asp, line 96
>
> ¿Alguien podria orientarme al respecto?
>
>
>
> Muchas gracias.
>
> -
Hi,
My site works fine offline but when uploaded i get the
homepage but when i try to login i get this message :
"ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range,
or are in conflict with one another.
/index.asp, line 14"
Here is the code :
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/connectDB.asp" -->
<%
// *** Validate request to log in to this site.
var MM_LoginAction = Request.ServerVariables("URL");
if (Request.QueryString!="") MM_LoginAction += "?" +
Server.HTMLEncode(Request.QueryString);
var MM_valUsername=String(Request.Form("username"));
if (MM_valUsername != "undefined") {
var MM_fldUserAuthorization="";
var MM_redirectLoginSuccess="welcome.asp";
var MM_redirectLoginFailed="loginFail.asp";
var MM_flag="ADODB.Recordset";
var MM_rsUser = Server.CreateObject(MM_flag);
MM_rsUser.ActiveConnection = MM_connectDB_STRING;
MM_rsUser.Source = "SELECT username, password";
if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," +
MM_fldUserAuthorization;
MM_rsUser.Source += " FROM logusers WHERE username='" +
MM_valUsername.replace(/'/g, "''") + "' AND password='" +
String(Request.Form("password")).replace(/'/g, "''") + "'";
MM_rsUser.CursorType = 0;
MM_rsUser.CursorLocation = 2;
MM_rsUser.LockType = 3;
MM_rsUser.Open();
if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
// username and password match - this is a valid user
Session("MM_Username") = MM_valUsername;
if (MM_fldUserAuthorization != "") {
Session("MM_UserAuthorization") =
String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value);
} else {
Session("MM_UserAuthorization") = "";
if (String(Request.QueryString("accessdenied")) !=
"undefined" && false) {
MM_redirectLoginSuccess =
Request.QueryString("accessdenied");
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginSuccess);
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginFailed);
%>
any thing to try would be great.Ask your host to set up a DSN for you. If they are no help,
remind them
that you pay for their service (I assume you do). Or consider
moving to a
host that will help you.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"hellfreezes" <[email protected]> wrote in
message
news:efds8t$pjq$[email protected]..
> I`m a noob and wouldn`t know how to do that. My host is
not helpful at
> all.
>
> There is ODBC connections and it says to "Create new
Data Source" then
> "Name:" and "Database path: Home directory for
cheatit.co.uk\"
>
> My database is in "Database/" dir and its called
cheats.mdb
>
> Does that create a connection to my database from my
homepage?
>
> or create a new database?
>
>
> -
AVAudioRecorder Corrupts file unless recordWithDuration set
For some reason in my app I cannot seem to start and stop recording.
I have taken my code right from the Documentation on using AVAudioRecorder class on the apple website. If i set [recorder recordWithDuration:10]; the app works fine it records for 10 seconds and as long as i let it finish by itself i can play back the file. if however I try and do [recorder stop]; The file becomes corrupted. I also recieve an error in the console.
2009-07-30 16:41:12.924 Scribe Direct Mobile[1996:207] recorder: NSOSStatusErrorDomain 560030580 (null)
here is the start and stop code
-(IBAction)record:(id)sender
[button addTarget:self action:@selector(stopRecording:) forControlEvents:UIControlEventTouchUpInside];
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *err = nil;
[audioSession setCategory :AVAudioSessionCategoryRecord error:&err];
if(err){
NSLog(@"audioSession: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
return;
[audioSession setActive:YES error:&err];
err = nil;
if(err){
NSLog(@"audioSession: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
return;
self.recordSetting = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithFloat: 44100.0], AVSampleRateKey,
[NSNumber numberWithInt: kAudioFormatAppleLossless], AVFormatIDKey,
[NSNumber numberWithInt: 1], AVNumberOfChannelsKey,
[NSNumber numberWithInt: AVAudioQualityMax], AVEncoderAudioQualityKey,
nil];
self.recordSetting = [[NSMutableDictionary alloc] init];
[recordSetting setValue:[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
[recordSetting setValue :[NSNumber numberWithInt:16] forKey:AVLinearPCMBitDepthKey];
[recordSetting setValue :[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey];
[recordSetting setValue :[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey];
// Create a new dated file
//NSDate *now = [NSDate dateWithTimeIntervalSinceNow:0];
//NSString *caldate = [now description];
NSNumber *rand1;
rand1 = [NSNumber numberWithUnsignedInt:arc4random()];
fmod([rand1 floatValue], 1000.0); //random number from 0-1000;
self.soundFilePath = [[NSString stringWithFormat:@"%@/%@-%@.caf", DOCUMENTS_FOLDER, @"noodles", rand1] retain];
NSURL *url = [NSURL fileURLWithPath:self.soundFilePath];
err = nil;
recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err];
if(!recorder){
NSLog(@"recorder: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
UIAlertView *alert =
[[UIAlertView alloc] initWithTitle: @"Warning"
message: [err localizedDescription]
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[alert release];
return;
//prepare to record
[recorder setDelegate:self];
[recorder prepareToRecord];
recorder.meteringEnabled = YES;
BOOL audioHWAvailable = audioSession.inputIsAvailable;
if (! audioHWAvailable) {
UIAlertView *cantRecordAlert =
[[UIAlertView alloc] initWithTitle: @"Warning"
message: @"Audio input hardware not available"
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[cantRecordAlert show];
[cantRecordAlert release];
return;
// start recording
[recorder recordForDuration:20];
[button setTitle:@"Stop Recording" forState:UIControlStateNormal];
//[self.button setEnabled:NO];
- (IBAction) stopRecording:(id)sender
[recorder stop];
NSError *err = nil;
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
[audioSession setActive:NO error: &err];
if(err){
NSLog(@"recorder: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
self.recorder = nil;
[button setTitle:@"Record" forState:UIControlStateNormal];
[button addTarget:self action:@selector(record:) forControlEvents:UIControlEventTouchUpInside];
}My apologies here it is reposted not borked! I am not using any buffers that I know of. I am simply using the AVRecorder class and the code defined in the documentation at this page: http://developer.apple.com/IPhone/library/documentation/iPhone/Conceptual/iPhone OSProgrammingGuide/AudioandVideoTechnologies/AudioandVideoTechnologies.html
for playback I used the avTouch example which works perfectly. I jsut need the recording to be able to start and stop. recordWithDuration is not very useful if it has to finish in order to record successfully.
-(IBAction)record:(id)sender
button addTarget:self action:@selector(stopRecording:) forControlEvents:UIControlEventTouchUpInside;
AVAudioSession *audioSession = AVAudioSession sharedInstance;
NSError *err = nil;
audioSession setCategory :AVAudioSessionCategoryRecord error:&err;
if(err){
NSLog(@"audioSession: %@ %d %@", err domain, err code, [err userInfo] description);
return;
audioSession setActive:YES error:&err;
err = nil;
if(err){
NSLog(@"audioSession: %@ %d %@", err domain, err code, [err userInfo] description);
return;
self.recordSetting = [NSDictionary alloc initWithObjectsAndKeys:
NSNumber numberWithFloat: 44100.0, AVSampleRateKey,
NSNumber numberWithInt: kAudioFormatAppleLossless, AVFormatIDKey,
NSNumber numberWithInt: 1, AVNumberOfChannelsKey,
NSNumber numberWithInt: AVAudioQualityMax, AVEncoderAudioQualityKey,
nil];
self.recordSetting = [NSMutableDictionary alloc] init;
[recordSetting setValue:NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey;
[recordSetting setValue:NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey;
[recordSetting setValue:NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey;
[recordSetting setValue :NSNumber numberWithInt:16] forKey:AVLinearPCMBitDepthKey;
[recordSetting setValue :NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey;
[recordSetting setValue :NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey;
// Create a new dated file
//NSDate *now = NSDate dateWithTimeIntervalSinceNow:0;
//NSString *caldate = now description;
NSNumber *rand1;
rand1 = NSNumber numberWithUnsignedInt:arc4random();
fmod(rand1 floatValue, 1000.0); //random number from 0-1000;
self.soundFilePath = [NSString stringWithFormat:@"%@/%@-%@.caf", DOCUMENTS_FOLDER, @"noodles", rand1] retain;
NSURL *url = NSURL fileURLWithPath:self.soundFilePath;
err = nil;
recorder = [ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err;
if(!recorder){
NSLog(@"recorder: %@ %d %@", err domain, err code, [err userInfo] description);
UIAlertView *alert =
[UIAlertView alloc initWithTitle: @"Warning"
message: err localizedDescription
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
alert show;
alert release;
return;
//prepare to record
recorder setDelegate:self;
recorder prepareToRecord;
recorder.meteringEnabled = YES;
BOOL audioHWAvailable = audioSession.inputIsAvailable;
if (! audioHWAvailable) {
UIAlertView *cantRecordAlert =
[UIAlertView alloc initWithTitle: @"Warning"
message: @"Audio input hardware not available"
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
cantRecordAlert show;
cantRecordAlert release;
return;
// start recording
recorder recordForDuration:20;
button setTitle:@"Stop Recording" forState:UIControlStateNormal;
//self.button setEnabled:NO;
* (IBAction) stopRecording:(id)sender
recorder stop;
NSError *err = nil;
AVAudioSession *audioSession = AVAudioSession sharedInstance;
audioSession setActive:NO error: &err;
if(err){
NSLog(@"recorder: %@ %d %@", err domain, err code, [err userInfo] description);
self.recorder = nil;
button setTitle:@"Record" forState:UIControlStateNormal;
button addTarget:self action:@selector(record:) forControlEvents:UIControlEventTouchUpInside;
Maybe you are looking for
-
When i start SQL Plus my oracle server is not starting it is giving me error ORA-1034. What could be the problem. How do i solve it??
-
Toshiba WT8-A-102 hdmi problem
I recently bought a Toshiba encore tablet (WT8-A-102, windows 8.1). However, i can't connect it to an external monitor (tv) via hdmi. I use a micro hdmi to hdmi cable. The tablet can't recognize the tv. The tv always displays the message "no signal",
-
Downloaded music into default location, how to redownload into correct location?
I'll keep this short: I updated the location for my music downloads, I had to reboot my machine (for other reasons). I didn't think twice about checking the download location and downloaded all my music, much to the frustration that all the music dow
-
Calling Ant Tasks on mulitple files
Hello, I was wondering if this was possible in Ant. I have a directory with multiple sub-directories. In each of those subdiretories there is a build.xml Ant file. Each one of them has a Target that I run, called "build". Is it possible to create a m
-
Creating separate online shop layouts for mobile
Is there any way to create separate shop layouts (catalogue.html, small_product.html, large_product.html, etc) for use on a mobile site. I want to limit some of the information posted to the mobile site--e.g., eliminate custom tags used in large prod