Welcome Guest, Not a member yet? Register   Sign In
ScriptCam plugin not working in CodeIgniter
#1

[eluser]mikespider[/eluser]
I just copy the ScriptCam jQuery plugin to my server and outside the codeigniter "application" folder it works fine. I copyed the contents of the "demo2.htm" into a .php file and place it in the views folder folder in the CI application and it doesn't work.

Any help is welcome,
Mike

#2

[eluser]noideawhattotypehere[/eluser]
gimmie the link to your app, can be via pm if you dont want to share it for everyone. probably some paths are wrong as CI has nothing to do with how your js works
#3

[eluser]mikespider[/eluser]
[quote author="noideawhattotypehere" date="1392710677"]gimmie the link to your app, can be via pm if you dont want to share it for everyone. probably some paths are wrong as CI has nothing to do with how your js works[/quote]

Thanks for your reply,
I just sent you a pm.

if you want me to send you or post the page script please let me know.

Thanks,
Mike
#4

[eluser]mikespider[/eluser]
Sorry forgot to mention that I put an alert in the ScriptCam js file and it pops up.
so i think the link is working fine.
#5

[eluser]mikespider[/eluser]
After hours of trying to figure this problem out, I noticed that it works if I have the demo.2 file set up as the default route. Any ideias?
#6

[eluser]noideawhattotypehere[/eluser]
Ill check it out after work (~7hours from now)
#7

[eluser]mikespider[/eluser]
found the solution.

I had to add this line in the jquery:
Code:
$("#webcam").scriptcam({

            path: '<?php echo $this->config->base_url(); ?>',
          ...




Theme © iAndrew 2016 - Forum software by © MyBB